View Single Post
Old 01-01-2008, 08:41 PM   #2 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quite simply really. Probably the best way is to connect using fsockopen and then send the data using fputs/fwrite. SMTP, as it's a protocol, has commands such as: HELO TalkPHP.

You'll be able to find the RFC for the SMTP protocol in many locations, though I don't know its RFC number off hand. Even HowStuffWorks, if you go to the "How Email Works" article - that will give you a basic run down of how to send an email using SMTP via Telnet on the 3rd or 4th page in the article; if I remember rightly. Same principle applies to sending the email through a PHP script.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote