Welcome to ADO.NET Access 2003—your ultimate hub for VB.NET and ADO.NET programming excellence. Discover in-depth tutorials, practical code samples, and expert troubleshooting guides covering a broad range of topics—from building robust WinForms applications and seamless MS Access integration to working with SQL Server, MySQL, and advanced tools like WebView2 and Crystal Reports. Whether you're a beginner or a seasoned developer, our step-by-step articles are designed to empower you to optimize.

Looking for MS Access Developer❓❓

Application developer

Post Page Advertisement [Top]

Visual Basic Online Course

Reading / Receiving Emails in VB.NET

Visual Basic Online Course - POP3 Method Reading / Receiving Emails in Vb.Net
Visual Basic .NET - POP3 Method Reading / Receiving Emails (VB.NET)

I was able to finish the (send Email) part successfully, though I've not finished the attachment and the Html parts yet, but the (receiving / reading Emails) part still out there somewhere I did not do it, though I managed to connect to POP3 servers and receive the +OK response successfully.

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 

Yahoo.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.

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.

ENJOY
Regards/ Evry1falls
Please feel free to try, test and update then contact me

 Here are some online Visual Basic lessons and courses:

Bottom Ad [Post Page]