I have set up Microsoft SMTP server so it will store all incoming email in a dropfolder.
I want to process, using c#, incoming mail based on the sender, recipient, and subject line. If possible, I also want to create a plain text preview of the email.
So, there are two parts to this problem.
- I'm guessing a FileSystemWatcher would be adequate for providing notification of incoming mail.
- How to parse the headers and body text from the .eml file; is there an existing library or any good documentation on the format?
Thanks for any help.