Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Email Background Color issue

I'm creating a newsletter and set the background-color using a hexcode #25292C; When I send the newsletter out the message appears fine. When I forward the newsletter to someone else the newsletter background overlays the entire email. I want to prevent the email from getting the newsletter background color. I'm using lotus notes as my email client.

Is there any workaround ?

like image 589
GOAT Avatar asked Dec 02 '25 05:12

GOAT


2 Answers

Here is what you are after:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title></title></head>
<body style="margin: 0px; padding: 0px background-color: #FFFFFF;" bgcolor="#FFFFFF"><!-- << bg color for forwarding // main bg color >> --><table bgcolor="#323232" width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding:30px;"><tr><td>

<!-- CENTER FLOAT -->
<table width="600" border="0" valign="top" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="padding:30px;"><tr><td>

main panel                   

</td></tr></table>
<!-- /CENTER FLOAT -->

</td></tr></table></body></html>

When you forward the email to a second recipient, the background is white (or whatever you set it)

like image 196
John Avatar answered Dec 04 '25 18:12

John


This worked for me

 <body style="background-color:#333333;  min-height:1000px;"  bgcolor="#333333">
      <!--[if gte mso 9]>
      <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
        <v:fill type="tile" src="bg.jpg" color="#333333"/>
      </v:background>
      <![endif]-->
    ......
    </body>
like image 40
Brent Avatar answered Dec 04 '25 20:12

Brent