views:

34

answers:

4

hi,

i've been using php's pear Mail & Mail_Mime libraries to send well formatted html emails with/without attachments. some hosting companies don't have these libraries installed, and are reluctant to do so.

so, i'm looking for a good technical source, tutorial, readable spec so i can write my own class using php's mail function... do you know of a good one?

thanks,

rob.

A: 

The hosting company doesn't need to install PEAR libraries on the server for you to use them. You can include them with your code.

If you're looking to move away from PEAR, I'd suggest trying Zend_Mail on for size.

Jordan Ryan Moore
i'll have a look at zend... its pretty big though. i've used the pdf classes, which are good.
Rob Curle
A: 

why not just use htmlmimemail5?

Ramuns Usovs
thanks...i'll take a look.
Rob Curle
A: 

There are instructions in the PEAR manual for installing using ftp. I have successfully used this to install PEAR on a web host that didn't provide it. You could give that a go before looking for alternatives.

garethm
thanks... i should really do this instead of writing my own. makes more sense!
Rob Curle
A: 

The Swiftmailer class may be exactly what you are after, or might be close enough that you can extend it to suit your needs.

Blair McMillan
cool, thanks... i'll take a look.
Rob Curle