convert mail() script to SMTP / misc PHP help?

Hi there, am looking for a bit of help on some PHP I'm doing.
http://pastebin.com/rwqsM0Sa

Theres the pastebin with my current code.

What I am looking for is to convert the mail() command to SMTP so that it's not sending directly from my hostings mail server. Also if anyone has any advise on how I could make it rotate through different smtp usernames from a list that would be great as well.

Thanks in advance for any help!
I'm very sure you can. You would just have to use an alternative script for sending the mail, or use Pear. Perhaps you misunderstand? I don't want to convert the mail() function.. I want to convert the script itself.
 
Back
Top