none
Email RRS feed

  • Question

  • I have been looking and researching for days now and have only found ways to send email in Visual Basic, but I have no clue how to receive, view the email, and see all the folders connected to the email (Inbox, Sent, Spam, etc). Could anybody help me out with this? Thanks in advanced.


    Donny

    Thursday, July 26, 2018 9:47 PM

Answers

  • How would automating an email client work? I didn't know you could do that.

    Donny

    If you are using Outlook, there are two routes: VSTO Add-Ins (Visual Studio Tools for Office) and the newer Outlook Add-Ins.

    You may find the VSTO route easier to work with for Outlook 2013/2016 clients, but the newer method is necessary if you want to also support O365.


    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

    Friday, July 27, 2018 3:01 PM
    Moderator

All replies

  • Hello,

    You need to use POP3.

    https://www.codeproject.com/Articles/18008/Simple-POP3-Email-Class

    https://code.msdn.microsoft.com/windowsdesktop/emails-using-POP3-882705d3

    Viewing can be a challenge without a third party component or relying on a client such as MS-Outlook.


    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

    Thursday, July 26, 2018 10:44 PM
    Moderator
  • Hi

    https://sourceforge.net/projects/hpop/?source=navbar

    I think you can download this plugin to try.

    Best regards,

    Alex


    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.

    Friday, July 27, 2018 5:58 AM
  • It doesn't have to be POP3, it could be IMAP as well, but the point is that you would need to write your own mail client for the given protocol, which would be a lot of work.

    What are you actually trying to achieve?  Would automating an existing mail client work for your purposes?


    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

    Friday, July 27, 2018 2:39 PM
    Moderator
  • How would automating an email client work? I didn't know you could do that.

    Donny

    Friday, July 27, 2018 2:46 PM
  • How would automating an email client work? I didn't know you could do that.

    Donny

    If you are using Outlook, there are two routes: VSTO Add-Ins (Visual Studio Tools for Office) and the newer Outlook Add-Ins.

    You may find the VSTO route easier to work with for Outlook 2013/2016 clients, but the newer method is necessary if you want to also support O365.


    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

    Friday, July 27, 2018 3:01 PM
    Moderator