pointeman
asked on
MailMessage AlternateViews HTML Table Cell Colors?
I've used MailMessage & AlternateViews for HTML before, but never with <Table> or <td> colors. The message arrives in table format, but no color.
I replaced the quotes with " which may be the problem (trying to satisfy VS2008 red-squiggles).
stringbuilder.Append(";<ta ble border="0" width=" 300" style=" font-family: Arial; font-size: 10px" >" +
"<tr><td width=" 80" align=" right" > </td><td> </td ></tr>" +
"<tr><td width=" 80" align=" right" bgcolor=" #6699FF" >Count:</td>" +
I replaced the quotes with " which may be the problem (trying to satisfy VS2008 red-squiggles).
stringbuilder.Append(";<ta
"<tr><td width=" 80" align=" right" > </td><td> </td
"<tr><td width=" 80" align=" right" bgcolor=" #6699FF" >Count:</td>" +
Rendering of the email would fall to the client which is displaying the message. You can control the structure of the mail, including what you intend its styling to be, but ultimately, it will be the email client which does or not display color. You'll have to test it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yea, the email client is certainly the judge. Been working with this code while waiting on EE, using style and single quote, it worked for someone else, we'll see........
stringbuilder.Append(";<ta ble border='0' style='width:300px; font-family: Arial; font-size: 10px;' >" +
"<tr><td style='width:80px; text-align:right; background-color: #6699FF;'> </td><td>& nbsp;</td> </tr>" +
"<tr><td style='text-align:right; background-color: #6699FF;' >Count:</td>" +
stringbuilder.Append(";<ta
"<tr><td style='width:80px; text-align:right; background-color: #6699FF;'> </td><td>&
"<tr><td style='text-align:right; background-color: #6699FF;' >Count:</td>" +