Solved

Trigger SP on incoming mail

Posted on 2010-09-15
3
377 Views
Last Modified: 2012-05-10
I would like to trigger a SP when an email is received to sql server 2005 email profile account, that is if sql can receive email??  I have many procs that trigger sending out emails but have never done the reverse.  Can this be done?
0
Comment
Question by:H-SC
3 Comments
 
LVL 2

Expert Comment

by:cetafudd
ID: 33685161
I dont believe you can do that directly on SQL like you do when sending emails. I would say you have to build (or maybe just download something that already does that) a .net?  application to get emails (IMAP or POP3) and then from this custom app you would call the SP passing the desired information from the email....
0
 
LVL 11

Accepted Solution

by:
Larissa T earned 500 total points
ID: 33688555
You can read messages as well. Here are details on SQL email
You will need to setup SQL job that runs periodically and check for email in inbox and read emails form inbox.
http://msdn.microsoft.com/en-us/library/aa155737(office.10).aspx

0
 
LVL 1

Author Comment

by:H-SC
ID: 33725434
trofimoval,

xp_readmail is the item I am looking for!

many thanks..
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question