Solved

Trigger SP on incoming mail

Posted on 2010-09-15
3
374 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
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 different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now