Solved

HTML Conditional Formatting dbmail

Posted on 2009-05-04
7
594 Views
Last Modified: 2012-05-06
I have a stored proc on sql 2005 server that sends out emails in html format.  It gets its data from a database view on the same server.  Everything currently works great and all emails get sent, however I would like to put some of the fields that it retrieves from my view in red if a condition is met.  

How can this be done?
0
Comment
Question by:H-SC
  • 4
  • 3
7 Comments
 
LVL 41

Expert Comment

by:ralmada
ID: 24295264
0
 
LVL 41

Expert Comment

by:ralmada
ID: 24295287
And for conditional formatting, check this other one:
http://www.arstdesign.com/articles/avs/conditionalformatting.html
 
0
 
LVL 1

Author Comment

by:H-SC
ID: 24295302
ralmada,

I currently have the email formated as html ad is working great.  I need to conditionally format that html to have the text be red if a condition is met on the field that gets pulled from the view.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 1

Author Comment

by:H-SC
ID: 24295321
ok, just got your last posting after I posted my reply.  I will take a look at the link...
0
 
LVL 41

Accepted Solution

by:
ralmada earned 500 total points
ID: 24295358
0
 
LVL 1

Author Comment

by:H-SC
ID: 24295459
ralmada,

I am going to go with the last one....  Many thanks for your help with this one.
0
 
LVL 1

Author Comment

by:H-SC
ID: 24296209
ralmada,
Applied the code from the last site that you sent and worked perfect!  thanks for sending me in the right direction
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question