Having trouble sending an attachment from the query analyzer using xp_sendmail. Here's my code:
I receive the error "xp_sendmail: failed with mail error 0x80004005". Removing the attachments line allows the code to run fine and send me an e-mail, so I know my permissions have not changed.
Thinking I misspelled the file directory, I moved the file to the root directory on the C drive, but still had no luck.
Any suggestions?
Code:
EXEC master..xp_sendmail @recipients = 'me@mymail.com',
@subject = 'Snapshot',
@attachments = 'c:\Off-Line\Snapshot\rpt_Snapshot.snp'
I receive the error "xp_sendmail: failed with mail error 0x80004005". Removing the attachments line allows the code to run fine and send me an e-mail, so I know my permissions have not changed.
Thinking I misspelled the file directory, I moved the file to the root directory on the C drive, but still had no luck.
Any suggestions?