none
Read email in VB.NET RRS feed

  • Question

  • How can i read email in VB.NET ?

    Okey...what i want is, a datagridview will populate itself with all the mails i have in my inbox and on double-click on row content , another form will show up which will work as the email reader..I can send mails using EASendmail.But i really need help in this case!

    Sunday, November 12, 2017 2:28 PM

All replies

  • You need to use their support as third party products are not supported here.

    https://www.emailarchitect.net/easendmail


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Sunday, November 12, 2017 3:08 PM
    Moderator
  • You need to use their support as third party products are not supported here.

    https://www.emailarchitect.net/easendmail


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    forget about EASendmail....any other way to achieve my goal ?
    Sunday, November 12, 2017 3:12 PM
  • Spire.Email library might be of your interest. It allows receiving messages from mail server, reading messages as well as sending messages independently of Outlook. For more information, check the Receive and Save Email in C#, VB.NET article.

    Hope it helps.

    Monday, November 13, 2017 2:40 AM
  • How can i read email in VB.NET ?

    Okey...what i want is, a datagridview will populate itself with all the mails i have in my inbox and on double-click on row content , another form will show up which will work as the email reader..I can send mails using EASendmail.But i really need help in this case!

    Hi Aousaf,

    According to your description, you want to populate all email into datagridview. So far, I've found a way to read email.

    https://www.codeproject.com/Articles/13439/Extracting-mails-and-attachments-from-outlook

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 13, 2017 10:22 AM
    Moderator
  • Asoud, do you know how many versions of Email readers there are?

    Microsoft alone has at least 10 versions to receive email as we count the older OS system as well in this. 

    Be aware beside Mapi are there as well HTTP mail systems currently

    https://en.wikipedia.org/wiki/MAPI


    Success
    Cor


    Monday, November 13, 2017 12:24 PM
  • How can i read email in VB.NET ?


    Just use the POP3 protocol with TcpClient, NetworkStream and StreamReader

    (plenty of code samples on Google...)


    • Edited by Castorix31 Monday, November 13, 2017 1:26 PM
    Monday, November 13, 2017 1:22 PM
  • It's easy to do with the help of third-party libraries. But you can compile a libraries of your own if you have time.

    Most of the email servers use standard POP3 interface. After authenticating to a POP3 server, you can retrive

    mails using POP3 commands.

    Refer here

    Tuesday, November 14, 2017 10:04 AM
  • It's easy to do with the help of third-party libraries. But you can compile a libraries of your own if you have time.

    Most of the email servers use standard POP3 interface. After authenticating to a POP3 server, you can retrive

    mails using POP3 commands.

    Refer here

    i can retrieve a single email using POP3.But how do i get them in the datagridview/listview like outlook ??
    Tuesday, November 14, 2017 1:39 PM
  • i can retrieve a single email using POP3.But how do i get them in the datagridview/listview like outlook ??
    Tuesday, November 14, 2017 1:39 PM
  • Hi,

    This is actually a huge subject and you've asked a question about a small part. Not a few comments could explain clearly. Go To Try It.

    If you are insteresting to Outllook, the Microsoft.Office.Interop.Outlook namespace allow you access the outlook .

    See:https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/automating-outlook-from-a-visual-basic-application

    C# code sample:http://www.programminghelp.com/dotnet/access-your-email-within-outlook-final-part-c/

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Sincerely,

    Bob


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 21, 2017 9:59 AM
  • Have you seen this IMAP example?

    https://code.msdn.microsoft.com/windowsdesktop/Simple-IMAP-CLIENT-b249d2e6


    Book session on Codementor
    Don't forget to vote for Helpful Posts and Mark Answers!
    *This post does not reflect the opinion of Microsoft, or its employees.

    Thursday, November 23, 2017 2:17 PM
    Moderator
  • You must run the code that reads all the email, save to a local database  (any database)  then create you gridview bind to that database to populate the grid in your program. 

    School District Online

    Saturday, December 22, 2018 8:05 PM