Page 1 of 1

Adding Attachments

Posted: Fri May 29, 2009 4:23 am
by jshepherd
Hi,

I’m trying to add an attachment to an automated email response that someone else setup under php. The form, response and thank you all work fine but I just can’t get the response to attach a file. I’m probably getting the syntax wrong but I don’t see where. These are only two lines I’m changing:

Code: Select all

$numfileattachments = 1;
$attachments = '\\downloads\test.pdf';
Any ideas? What am I missing?

Re: Adding Attachments

Posted: Fri May 29, 2009 1:37 pm
by ibizaweb2
There is example code for attachments here: http://www.php.net/mail