Since an ASP.NET page has to be called in order to function, you really can’t use it to handle incoming mail; you never know when a message will arrive.
You could put the page on a schedule to process mail, however; either triggering it via a cronjob on a LAMP server, or with a scheduled task to Internet Explorer on your Web server, or depending on the mail server you have, it might be able to trigger a browser visit to your page any time a message is received.
The library you need to work with mail messages is System.Net.Mail.
Comments
Leave a comment Trackback