Page 1 of 1

if you want to avoid using mail() 4 some reason...

Posted: Mon Aug 11, 2003 8:24 am
by tobo
If for some reason you don't want to or cannot use the mail() function, you can also use another method for sending mail.

it's just that you connect directly to the MX host that belongs to the recipient's email address and send the mail.

I've written a lame little function for this that worked fine for me, the only thing that is very bad with it so far is that you have to wait till it connects, and sends the mail directly, unlike with mail() where you may configure your server to just queue these requests so that it won't take a long time.

However, use and contribute this if you feel like, if there's need for it I'll try to redo it so that it would handle all the things correctly, until then, here's the beta :)

http://nyoc.hu/dmail.inc.phps

and if u don't want any output, just uncomment the ECHO lines, it should solve the problem..