I'd like to write a simple email module that sends/reads an email, without the need to go through any email programs or registered email dlls.
I think there was an email example posted sometime ago - just cannot find it...
Here's my thoughts..
- Know the structure of the email sent over the net, the ports, and packet formats.
- Be able to parse/filter emails on one's postbox and download the relevant email.
Thanks for any help
:8)
Not at computer but you can search for rfc's smtp rfc, mime rfc email is easy
Will do... thanks :U
Probably POP on the receive side
http://tools.ietf.org/html/rfc1081
Both SMTP (25) and POP (110) are relatively simple back-n-forth protocols using sockets, personally haven't coded them in assembler, but have done so in C.
Gets more complicated if you want it secure. I haven't looked at IMAP
genesys project (http://pbrennick.freehosting.net/)(GeneSysSDK2008.zip)
joe v.1.1.0 by japeth (http://www.japheth.de/Download/Joe/Joe118.zip)
Japheth's Outlook Express :bdg
Sending is simple, as long as you have a friendly server - use ESMTP http://tools.ietf.org/html/rfc5321 via port 25, and then the commands of interest will be "EHLO", "MAIL FROM", "RCPT TO", "DATA", and "QUIT"
Receiving can be a bit more complex, but POP3 http://tools.ietf.org/html/rfc1939 is fairly simple; though IMAP4 http://tools.ietf.org/html/rfc3501 is preferred, but requires more work.
They're purely line-based text protocols, where lines end with a CR-LF pair. You connect on the required port, start sending commands, and receive the replies. Anything that isn't plain text (attachments) tends to be MIME encoded.
Thank you gentlemen.. :U
http://www.ietf.org/rfc.html