SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

pushp82
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.

Thanks,

khtan
In (Som, Ni, Yak)

Singapore
17642 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


KH
Time is always against us

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 10/23/2012 :  18:37:13  Show Profile  Reply with Quote
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
  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.05 seconds. Powered By: Snitz Forums 2000