| | |
How do i sendt Text and HTML with sp_send_dbmail?
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 22
Reputation:
Solved Threads: 0
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:
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:
MS SQL Syntax (Toggle Plain Text)
EXEC msdb.dbo.sp_send_dbmail @profile_name = 'SQLServerDatabaseMailProfile', @recipients = @TranslatorEmail, @body = @HTML, @subject = @subject, @importance='High', @body_format = 'HTML';
Last edited by NextCom; Jul 5th, 2009 at 6:06 am.
![]() |
Similar Threads
- Tutorial: Forms: styling text fields with CSS and HTML (Site Layout and Usability)
- When message changes from text to HTML format, font is not the default (Outlook 2003) (Windows NT / 2000 / XP)
- Sending HTML/Plain text Emails (PHP)
- store HTML is a text field in a table on a MySQL Database (MySQL)
- Searching text from html source code (VB.NET)
- Display and edit HTML\Plain text (C#)
Other Threads in the MS SQL Forum
- Previous Thread: Error in If statement
- Next Thread: Insert New Data with Counters
| Thread Tools | Search this Thread |





