tsql - How can I set a custom email header when using sp_send_dbmail from MS SQL Server? -


i'm using t-sql send email attachment stored procedure:

exec @return_status = msdb.dbo.sp_send_dbmail     @profile_name = 'profilename',     @recipients = @recipients,     @body = @mailbody,     @subject = @subject,     @file_attachments = @full_attachment_filename 

i set custom header on email being sent. there way using sp_send_dbmail stored procedure?

more info: sql server version 2005, , it's sending email through microsoft exchange server (2003).

the default sp_send_dbmail not have ability edit header information per question...

i know because can see input parameters , code definition:

use [msdb] exec sp_help sp_send_dbmail 

you however, edit profile replies (auto or otherwise) go email address like: donotreply@youremailaddress.co.uk or leave blank?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -