Visual Basic Online Course
Reading / Receiving Emails in VB.NET
![]() |
Visual Basic .NET - POP3 Method Reading / Receiving Emails (VB.NET) |
Hotmail Mail Server Settings
- - Incoming Server(pop3.live.com) port(995) Secure Connection (SSL) is a must
- - Outgoing Server(smtp.live.com) port(587) Secure Connection (TLS) is a must
Note
Hotmail.com have both free and paid accounts, but both supports E-mail clients. So you should go inside your Email settings to enable POP3 and forwarding option to be able to work with Email clients.
Yahoo Mail Server Settings
Incoming Server(pop.mail.yahoo.com) port(995) Secure Connection (SSL) is not a must if you're using the free mail.
Outgoing Server(smtp.mail.yahoo.com) port(465) Secure Connection (TLS) is a must
Note
Gmail Mail Server Settings
Incoming Server(pop.gmail.com) port(995) Secure Connection (SSL) is a must
Outgoing Server(smtp.gmail.com) port(587) Secure Connection (TLS) is a must
Full source code and tutorial about receiving Emails using VB .net 2010 and POP3 Commands
1) Understanding E-mails - Settings - Start Coding
2) Receiving response from POP3 server
3) Retrieving the number of E-mails from your [Inbox]
4) Solving the POP3 connect\disconnect without errors
5) Source Code Download
Notes
- In order to get fully understanding to this topic, you need to read the whole 5 sections as they are already a summary to what i found there.
- There is no direct source code application using VB.Net to receive Emails from POP3 Client, only this one is available.
- Microsoft did not offer a built-in function that enables you to receive Emails Using POP3 Commands, so this is just a work around solution and it was tested on Hotmail.com and Gmail.com.
- Gmail.com sometimes uses a 2-steps verification methods, so i had to work that too here.
♥ Here are some online Visual Basic lessons and courses: