Search code examples
c#.netemailimappop3

looking for way to get mail to my application


I need that my applicatiob will be able to get mail... this is c# .net application that installed on windows server 2008, So I want that one of the way to comunicate with the application will be through mail , so Someone will send mail to the application the application will parse the mail an do something accordingly

Any Idea how to do that?


Solution

  • You will need to create an SMTP Mail Server that listens on Port 25 and accept commands from a mail client. A good understanding of how SMTP works and the basic commands clients send to a mail server. You can find a list of commands and responses here:

    http://www.networksorcery.com/enp/protocol/smtp.htm

    You could then write a parser that interprets a command "do something accordingly" here.