Adding Attachments

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jshepherd
Forum Newbie
Posts: 1
Joined: Fri May 29, 2009 4:22 am

Adding Attachments

Post 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?
Last edited by Benjamin on Fri May 29, 2009 10:31 am, edited 1 time in total.
Reason: Added [code=php] tags.
ibizaweb2
Forum Newbie
Posts: 4
Joined: Fri May 29, 2009 1:32 pm

Re: Adding Attachments

Post by ibizaweb2 »

There is example code for attachments here: http://www.php.net/mail
Post Reply