sendings attachments in mail

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
sobha
Forum Commoner
Posts: 56
Joined: Wed Jul 15, 2009 9:08 pm

sendings attachments in mail

Post by sobha »

I'm using class.phpmailer.php class for sending mails.I would like to know how to send user specified files as attachment .
I tried using file browse button to upload the file and specified that file as parameter to AddAttachment ().But server is not able to access the file in client machine.

Any solutions?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Re: sendings attachments in mail

Post by Ambush Commander »

Most of the denizens on this forum will recommend you Swift Mailer over phpmailer. See http://swiftmailer.org/docs/message-attachments
Post Reply