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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.