| How do I automatically process an incoming mail on my Web Server using ASP.NET 2.0 ?

How do I automatically process an incoming mail on my Web Server using ASP.NET 2.0 ?

s_ruchit asked:


Hi all,

I’ve a website with webserver and mailserver on the same server. How do I process any incoming mail using ASP.NET 2.0. please note that I’m not asking for auto-respondars. This is greatly provided by the mail server and I can do the same in my mail server control pannel by logging in to the same.

For Ex:

I want some action to be done which may store or read some information in database ( SQL Server 2K ) and perform some work on the data that has come along with the mail.

Thanks..

Ruchit S.
It will require trigerring ofcourse. So how do I set a trigger for the same. is this anyways possible ?

Related posts:

  1. Web 2.0 websites? What tutorial could i learn how to develop user friendly or created content? tags, profiles? Ncarolina K asked: What would i need to do to...
  2. How to develop PDA web application in asp.net 2.0? kutti asked: I want to develop my website in asp.net...
  3. Where’s the best place to find a Web 2.0-style designer? NY asked: What website would give me the best leads...
  4. Best place to find a Web 2.0-style CSS Designer? NY asked: What website would give me the best leads...
  5. Web 2.0/XML/SOAP - XML to dynamic SQL ? D Shah asked: In my new business needs, I have...

Filed Under Programming & Design |

Tagged With , ,

Comments

One Response to “How do I automatically process an incoming mail on my Web Server using ASP.NET 2.0 ?”

  1. dhvrm on March 30th, 2009 5:22 pm

    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.

    UPDATE:

    I’ve already explained how you can invoke the page in my answer.