Hi Guys
Kindly help me out with this.
I created a small form after which the user should recieve a thank you mail and a PDF file from the server shall be attached (in my case it's a brochure).
How do I do it?
I tried the following code in the "after submit before mail":
Strangely it worked but now it doesnt. And I really have no idea why.
All I need is to attach the brochure to the thank you email the user is getting after he fills in all his data.
Please help me out.
Kindly help me out with this.
I created a small form after which the user should recieve a thank you mail and a PDF file from the server shall be attached (in my case it's a brochure).
How do I do it?
I tried the following code in the "after submit before mail":
<?php
$MyUploads =& CFUploads::getInstance($MyForm->formrow->id);
$MyUploads->attachments[] = 'File Path'; // add complete file path here
?>
Strangely it worked but now it doesnt. And I really have no idea why.
All I need is to attach the brochure to the thank you email the user is getting after he fills in all his data.
Please help me out.
Hi ER21,
As far as I know that code should work. Are attachments enabled in the Email Setup | Properties?
Bob
As far as I know that code should work. Are attachments enabled in the Email Setup | Properties?
Bob
Thanks for the fast response.
Yes. Attachments are enabled.
How does the link has to look like?
like: http://mydomain.com/brochure.pdf ?
Yes. Attachments are enabled.
How does the link has to look like?
like: http://mydomain.com/brochure.pdf ?
This topic is locked and no more replies can be posted.