receive email on Wpf application C#

darren guest 1 Reputation point
2020-09-25T22:13:11.543+00:00

hi im wondering if anyone has any idea how to receive emails in my application.

I have been looking for some help on what the front end is for my users but also the code behind it

any help would be great

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy ONeill 361 Reputation points
    2020-09-26T13:26:21.203+00:00

    If you literally mean you want an app to receive email then that means you're building an smtp server.
    Luckily, someone already parcelled up an implementation of one of these things for you:

    https://github.com/cosullivan/SmtpServer

    Has to be said, there's a clue in the name there though.
    Server.

    This isn't really something you'd usually put in a wpf app and deliver to someone's desktop.

    Alternatively.

    You could "just" write a front end for a gmail account.
    Google csharp email client and csharp smtp.

    eg
    http://csharp.net-informations.com/communications/csharp-smtp-mail.htm