SETUP --> EMAIL EDIT --> ATTACHMENT FILES(see attachment)The email is send properly, but without any attachment. What am I doing wrong?"> Send attachment with email - Forums

Forums

Send attachment with email

Quevi2008 31 Mar, 2014
Hi,

If one of my customers completes a form, I want to send him a .pdf document in the email that he receives.

I've typed the absolute path name and file name in the field "Attachment files" which you can see via:

FORM NAME --> SETUP --> EMAIL EDIT --> ATTACHMENT FILES

(see attachment)

The email is send properly, but without any attachment. What am I doing wrong?
Max_admin 31 Mar, 2014
Hi Quevi2008,

You should add the file field name in that box, not the file name path!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Quevi2008 12 Apr, 2014
Max,

so this filed is to send a attachment to the website owner?

I want that if one of our customers has completed the form, he will receive a brochure from our company.

So the document should is saved in one of my website folders, and if the customer requests a brochure, my form script will end the brochure automatically to the customers e-mailaddress...

Ho can I realize this?
Max_admin 12 Apr, 2014
Answer
You will need to add the file path to the files array manually for this to work, let's call your file field name in this case "brochure", so you should enter "brochure" in the attachments files box and add a "custom code" action before the email action and insert this code:

<?php
$form->files["brochure"]["path"] = "YOUR PATH HERE";


Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.