Please advise a php mail class (library)

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
tim_kinder
Forum Newbie
Posts: 8
Joined: Sun Jan 22, 2006 7:48 pm

Please advise a php mail class (library)

Post by tim_kinder »

Hello,

Can you please advise an easy to use and reliable php mail class or library?

The requirements are :

- Multipart/alternative emails (HTML/non-HTML);
- Attached files;
- Attachments created from script output;
- Multiple languages/encodings (unicode?)
- Open Source (php)

Sincerely,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

phpmailer?

phpmailer.sf.net - not absolutely sure on the multilanguage support, but I don't think it doesn't support them.
tim_kinder
Forum Newbie
Posts: 8
Joined: Sun Jan 22, 2006 7:48 pm

Post by tim_kinder »

feyd wrote:phpmailer?
I'm reading it's tutorial right now, but can't see how to create attachments from script output, rather than reading from file.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

tim_kinder wrote:
feyd wrote:phpmailer?
I'm reading it's tutorial right now, but can't see how to create attachments from script output, rather than reading from file.
Add string attachment.

Alternatively, you could channel the script output to a temporary file, attach (AddAttachment) it to phpmailer, and then delete it.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Did you also read the tutorial on http://www.phpfreaks.com/tutorials/130/0.php? I found it very useful, and all examples worked for me. Including attachments etc.
Post Reply