Solved

Trigger SP on incoming mail

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

911 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

24 Experts available now in Live!

Get 1:1 Help Now