The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: vanjast on February 27, 2012, 06:42:38 PM

Title: any email examples out there - Search couldn't help me !!
Post by: vanjast on February 27, 2012, 06:42:38 PM
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)






Title: Re: any email examples out there - Search couldn't help me !!
Post by: Gunner on February 27, 2012, 07:00:24 PM
Not at computer but you can search for rfc's smtp rfc, mime rfc email is easy
Title: Re: any email examples out there - Search couldn't help me !!
Post by: vanjast on February 27, 2012, 09:09:42 PM
Will do... thanks  :U
Title: Re: any email examples out there - Search couldn't help me !!
Post by: clive on February 27, 2012, 09:15:27 PM
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
Title: Re: any email examples out there - Search couldn't help me !!
Post by: mineiro on February 27, 2012, 10:08:49 PM
genesys project (http://pbrennick.freehosting.net/)(GeneSysSDK2008.zip)
joe v.1.1.0 by japeth (http://www.japheth.de/Download/Joe/Joe118.zip)
Title: Re: any email examples out there - Search couldn't help me !!
Post by: oex on February 27, 2012, 10:14:50 PM
Japheth's Outlook Express :bdg
Title: Re: any email examples out there - Search couldn't help me !!
Post by: Tedd on February 28, 2012, 01:38:00 PM
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.
Title: Re: any email examples out there - Search couldn't help me !!
Post by: vanjast on February 28, 2012, 06:35:12 PM
Thank you gentlemen..  :U
Title: Re: any email examples out there - Search couldn't help me !!
Post by: NPNW on February 29, 2012, 04:46:12 AM
http://www.ietf.org/rfc.html