User forums > General (but related to Code::Blocks)
What do you use for sending and reciving emails, POP3 or IMAP
StingRay:
Hello!
I'm bran new to CodeBlocks & wxWidgets and playing around some. And loving it!
Quick question, wxWidgets does not seam to have much for sending and receiving emails, it has wxEmail which has a Send function.
What do you use for sending and receiving emails, POP3 or IMAP.
Again, just playing around and it’s more curiosity than anything.
Thanks for your help.
Rick
Blue-Tiger:
usually POP3, but there's 1 mail-account (out of 3) where I use IMAP.
thomas:
--- Quote ---What do you use for sending and receiving emails, POP3 or IMAP.
--- End quote ---
Neither POP3 nor IMAP can be used to send emails.
Your question regarding wxEmail suggests you are intending to write an email client using wxWidgets, is that right?
StingRay:
--- Quote from: thomas on June 25, 2006, 12:59:03 pm ---
--- Quote ---What do you use for sending and receiving emails, POP3 or IMAP.
--- End quote ---
Neither POP3 nor IMAP can be used to send emails.
Your question regarding wxEmail suggests you are intending to write an email client using wxWidgets, is that right?
--- End quote ---
Right. I’d like to do it more to see how it is done than anything.
I understand using POP3, IMAP and SMTP from a client, but not form code.
Is there a library / source code that is used by others. I figured since wxEmail hadn’t been developed further that there was probably something else out there that people were using.
Thanks again.
Rick
thomas:
--- Quote from: StingRay on June 25, 2006, 02:31:57 pm ---Right. I’d like to do it more to see how it is done than anything.
I understand using POP3, IMAP and SMTP from a client, but not form code.
--- End quote ---
To understand how it is done, the best would be to read the RFCs on the web (or invest in the book by Wright/Stevens).
Basically they all work more or less the same:
You make a simple socket connection, and you send a 4-byte command (such as USER, PASS, RCPT, or STAT) telling the server what you want, and you get back a reply. You can play with this via telnet. Try telnet yourpop3server 110, then type USER yourusername, followed by PASS yourpassword, and then STAT. You'll get a listing of your mail (if there is any) and you can then for example use RETR 1 to get message number 1.
A mail client does nothing else. Well, a bit more maybe, since there are other authentication methods than plaintext passwords, and many advanced features... but basically that's it.
You have to know what the commands are and when you may use which one, all of that is well documented in the RFCs.
A working open source implementation is for example in PHP and (obviously) Thunderbird.
Navigation
[0] Message Index
[#] Next page
Go to full version