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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Reading email body

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-08-01 : 14:52:56
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."

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2005-08-01 : 18:51:53
Try using the CDO objects. There is some sample code to send emails at http://www.orcsweb.com/articles/sendmailsql.aspx. You should be able to adapt this to read emails.

Tim
Go to Top of Page
   

- Advertisement -