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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
tobo
Forum Newbie
Posts: 1
Joined: Mon Aug 11, 2003 8:24 am
Contact:

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

Post 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..
Post Reply