Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net process incoming email

Tags:

.net

smtp

I need to receive email and parse and act on the contents programatically.

I've done this before by setting up a postfix server and piping the incoming mail to a php script that handles this.

That would be overkill though for a new project i'm working on.

I'm hoping someone knows of a library or existing utility that would listen for incomming email and then allow me to pipe it or run some .net code on the contents of the message.

This doesn't need to be a fully functional smtp client/server. It just needs to be able to handle a specific email from a specific address with a specific format. I can take care of all that, I just need to get access to the email contents. Server environment is win 2008, .net 4

like image 990
Erick Avatar asked Aug 24 '26 13:08

Erick


2 Answers

Fully functional c# coded mail server with source: http://www.codeproject.com/KB/vista/SMTP_POP3_IMAP_server.aspx

Latest in: http://www.lumisoft.ee/lsWWW/download/downloads/

You can write message filter for it or implement own server using SMTP server component.

like image 51
Ivar Avatar answered Aug 27 '26 05:08

Ivar


Have a look at http://ndumbster.sourceforge.net/default.html. This is the complete source code for a fake smtp server. Hack your code right in.

like image 35
aquaherd Avatar answered Aug 27 '26 04:08

aquaherd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!