none
Windows service that monitors outlook incoming emails RRS feed

  • Question

  • Dear All,

       I need to create a Windows Service that monitors incoming emails and
    updates a DB(sql server).I am using c sharp and outlook 2007. How can i achive this Kindly help me...

    Thanks in Advance...!

     
    Friday, May 18, 2012 7:06 AM

Answers

  • You cannot use the Outlook object model in a service, it's not supported and will crash or hang Outlook. You can use EWS as Damian recommended, or you can use Redemption code for that (www.dimastr.com/redemption), which can run in a service.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Sucindran" <=?utf-8?B?U3VjaW5kcmFu?=> wrote in message news:e7e55190-1c75-4a76-af26-1f00fe0ae24d...

    Dear All,

       I need to create a Windows Service that monitors incoming emails and
    updates a DB(sql server).I am using c sharp and outlook 2007. How can i achive this Kindly help me...

    Thanks in Advance...!

     

    Ken Slovak MVP - Outlook
    Friday, May 18, 2012 1:38 PM

All replies

  • first of all - outlook (generally all office apps) and windows service do not mix - it may work for a while sonner or later it will crash in random places. Best best assuming you are using Exchange would be to use EWS to monitor inbox for new mails and act upon them. If my guess about exchange is correct please open thread on exchange forum as there are people who know EWS best.

    Friday, May 18, 2012 8:37 AM
  • You cannot use the Outlook object model in a service, it's not supported and will crash or hang Outlook. You can use EWS as Damian recommended, or you can use Redemption code for that (www.dimastr.com/redemption), which can run in a service.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Sucindran" <=?utf-8?B?U3VjaW5kcmFu?=> wrote in message news:e7e55190-1c75-4a76-af26-1f00fe0ae24d...

    Dear All,

       I need to create a Windows Service that monitors incoming emails and
    updates a DB(sql server).I am using c sharp and outlook 2007. How can i achive this Kindly help me...

    Thanks in Advance...!

     

    Ken Slovak MVP - Outlook
    Friday, May 18, 2012 1:38 PM