Hi
does anyone know where can i find good tutorial for PHP mail function with attachement?
thanks and regards
mail() with attachement
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: mail() with attachement
There is code and examples in the PHP manual. That said, it is a non-trivial task to get attachments working well. There are a number of great mailers that have already gone through the MIME hell headaches, such as SwiftMailer, phpMailer, and mail components from various frameworks.
(#10850)
Re: mail() with attachement
I give a thumbs up to phpMailer, see my reply on the following post for info and a link to it. Be sure to check out examples/test_mail_basic.php in the download for a basic example of how to use it:
viewtopic.php?f=1&t=130020&p=654007#p654007
viewtopic.php?f=1&t=130020&p=654007#p654007