How to mail attachment file

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
umapathy
Forum Newbie
Posts: 14
Joined: Fri Jul 28, 2006 2:21 am
Location: chennai - india

How to mail attachment file

Post by umapathy »

Dear All,

I have one problem,
i can mail to cc,to,subject,message
but i could not send with attachment file.
if any one known please post code

Regards
Umapathy
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I would recommend that you use SwiftMailer or phpMailer instead of trying to write your own. It is not as easy as you think to create MIME emails that work for most recipients.
(#10850)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Creating one is easy. Making sure it works on all servers and all clients... nightmare. Do as arborint says.
Post Reply