I need to send an email from a select within a stored procedure and that the attachement is appended to the mail. I also need a copy of the file to be placed into a text file on the system.
I can send the result when setting the @attach_result=True
in xp_sendmail
I can also copy the result to disk using xp_cmdshell bcp
What I can't do is pick the file up and send it. Or is there a better way of doing this.
I can send the result when setting the @attach_result=True
in xp_sendmail
I can also copy the result to disk using xp_cmdshell bcp
What I can't do is pick the file up and send it. Or is there a better way of doing this.