Solved

Trigger SP on incoming mail

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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.
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…
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.

726 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