Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Reading email body
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 08/01/2005 :  14:52:56  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Alan writes "How can I programatically poll an Exchange email account from within SQL Server to read the body of an email and update a table field based on the email's content. I had this functionality working using xp_readmail but new hosting doesn't support MAPI so I need an alternative solution."

Flowing Fount of Yak Knowledge

1242 Posts

Posted - 08/01/2005 :  18:51:53  Show Profile  Visit timmy's Homepage  Reply with Quote
Try using the CDO objects. There is some sample code to send emails at You should be able to adapt this to read emails.

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000