27 July,2011 by Tom Collins
To send BCC and Copy in SQL Sp_send_dbmail, use this way to send email from a configured Database Mail server.
EXEC msdb.dbo.sp_send_dbmail @recipients=N'[email protected]', @copy_recipients ='[email protected]’ @blind_copy_recipients ='[email protected]’ @body= 'Some text for body', @subject = 'Some text for subject', @profile_name = 'MyProfile1';
The email addresses in @recipients go on the To: line.
To use COPY and BCC on sp_send_dbmail , the parameters are :
@copy_recipients ='[email protected]’
@blind_copy_recipients = '[email protected]'
Related Posts
Set up Database Mail on SQL Server 2005
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |