?
Solved

Trigger SP on incoming mail

Posted on 2010-09-15
3
Medium Priority
?
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

765 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