Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_sendmail help

Status
Not open for further replies.

annah

Programmer
Jan 31, 2005
1
NZ
I am having trouble using the xp_sendmail proc. Whenever I pass a mail attachment in the parameters i get a MAPI system failure. Could someone explain to me how to pass the mail attachment parameter? Is the data type a string?
 
The mail attachement is a string that contrains the path and filename of the file to attach.

Don't forget that the path and filename will be assessed from the server, So if you put an attachement as "C:\MyFiles\File1.txt" then the directory and file MUST exist on the server running SQLServer.

You will probably find the MAPI error is caused by not finding the file to attach.

Hope this helps,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top