Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to send HTML formated mail

Author  Topic 

pushp82
Yak Posting Veteran

83 Posts

Posted - 2012-10-23 : 08:11:55
Hi All,

I have a challenge to accomplish the task from my boss in specific time window i.e : They have pre-defined format mail that contains image in mail body like it is a promotional mail and they want to sent them to all e-mails we have in our database.
I have used sp_sende-mail yet that sends plain text mail... how to do this task in sql server. is it possible in SSIS? If someone could help me step by step for HTML format.

Thanks,

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-10-23 : 08:49:34
for sp_send_dbmail
pass in @body_format = 'HTML' and the formatted HTML text in @body

refer to http://msdn.microsoft.com/en-us/library/ms190307.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-23 : 18:37:13
this is how you do it in ssis

http://www.mssqltips.com/sqlservertip/1753/sending-html-formatted-email-in-sql-server-using-the-ssis-script-task/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -