- Я пробовал использовать bgcolor, встроенный стиль и CSS в заголовке, но все равно получаю серый фон, как если бы Outlook его удалял.
- Я пытался принудительно установить фон в основной таблице, поскольку клиенты удаляют тело, но проблема все та же
Код: Выделить всё
/* Ensures proper spacing for Outlook */
table {
border-collapse: collapse;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
display: block;
border: 0;
outline: none;
text-decoration: none;
}
a {
text-decoration: underline;
font-weight: normal;
color: #A7BD46;
}
td {
vertical-align: middle;
}
.main-table {
background-color: #ffffff !important;
/* Background color */
margin: 0 auto;
/* Center the table horizontally */
max-width: [[mail_width]]px !important;
width: [[mail_width]]px !important;
}
/* Header styles */
.header {
width: 100%;
padding: 10px 0;
background-color: #f5f5f5;
/* Optional background color */
text-align: center;
}
.header-table {
margin: 0 auto;
/* Center the table horizontally */
width: 100%;
background-color: white !important;
max-width: [[mail_width]]px;
width: [[mail_width]]px;
}
.header-text {
font-size: 18px;
font-family: Arial, sans-serif;
color: #333;
text-align: center;
padding-left: 10px;
}
.email_content p {
background-color: #E7F5F4 !important;
font-size: 16px !important;
padding: 20px !important;
}
.email_content {
background-color: #E7F5F4;
padding: 20px !important;
}
.email_footer {
padding: 5px;
background-color: #eaefee;
height: 23px !important;
line-height: 23px !important;
display: block;
width: 100%;
}
.email_footer p {
font-size: 14px !important;
}
.email_status {
font-weight: bold;
font-size: 18px !important;
}
.icon_image {
margin-right: 40px !important;
}
[b][/b]
[[company_logo]]
[[icon_image]]
[[email_content]]
Подробнее здесь: https://stackoverflow.com/questions/797 ... d-to-white