SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to send HTML formated mail
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

83 Posts

Posted - 10/23/2012 :  08:11:55  Show Profile  Reply with Quote
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.


In (Som, Ni, Yak)

17684 Posts

Posted - 10/23/2012 :  08:49:34  Show Profile  Reply with Quote
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

Time is always against us

Go to Top of Page

Very Important crosS Applying yaK Herder

52325 Posts

Posted - 10/23/2012 :  18:37:13  Show Profile  Reply with Quote
this is how you do it in ssis


SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000