How do i sendt Text and HTML with sp_send_dbmail?

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 22
Reputation: NextCom is an unknown quantity at this point 
Solved Threads: 0
NextCom NextCom is offline Offline
Newbie Poster

How do i sendt Text and HTML with sp_send_dbmail?

 
0
  #1
Jul 5th, 2009
The issue isn't how to use sp_send_dbmail, because i use it everywhere, for both querys and system mails.

But i have one problem, and that is how do you send a mail with HTML and TEXT format?

You probably wonder why i need this because all the mail readers now support HTML, and you don't need both. But the problem is SPAM filters, you get +2 spam points for having diffrent HTML source than your TEXT source.

Just pasting in an example:
  1. EXEC msdb.dbo.sp_send_dbmail
  2. @profile_name = 'SQLServerDatabaseMailProfile',
  3. @recipients = @TranslatorEmail,
  4. @body = @HTML, @subject = @subject, @importance='High', @body_format = 'HTML';
Last edited by NextCom; Jul 5th, 2009 at 6:06 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC