Solved

xp_sendmail specify sender:

Posted on 2002-06-20
2
455 Views
Last Modified: 2007-12-19
I have a question regarding xp_sendmail in sql server 2000.

SQL Mail is using an Outlook profile called 'SQLMail',
which I have configured with a mailbox called 'SQLMail'.
The sa_sql-account has permissions to the mailbox.
Everything works fine.

Here comes the problem.
All the mails being sent comes from the same sender (SQLMail).
I would like to specify the sender.

Ex I have a table with message, subject, attachments, recipients and sender.
Sender is a valid exchange mailbox. sa_sql has permissions to all mailboxes on the exchange server.

In Outlook I can specify the sender in a From field. I want to do the same from sql server.
0
Comment
Question by:ola
2 Comments
 
LVL 6

Accepted Solution

by:
curtis591 earned 200 total points
ID: 7096540
I know of no way to do it with xp_sendmail but you might be able to use OLE Automation with Outlook from inside a SQL stored procedure to send your message.  
0
 
LVL 3

Author Comment

by:ola
ID: 7096657
I found an article on this.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312839

With this solution mails is sent through smtp.

I think I need a mapi solution. The mails sent should
be stored in 'Sent Items' in the senders Mailbox.

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

914 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

17 Experts available now in Live!

Get 1:1 Help Now