Skip to content

Instantly share code, notes, and snippets.

@maxdenaro
Last active October 1, 2024 09:48
Show Gist options
  • Save maxdenaro/7b9086542f213bfa724a154b3f8d8ab1 to your computer and use it in GitHub Desktop.
Save maxdenaro/7b9086542f213bfa724a154b3f8d8ab1 to your computer and use it in GitHub Desktop.
HTML Email Template
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>HTML Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
width: 100% !important;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
margin: 0;
padding: 0;
line-height: 100%;
}
[style*="Open Sans"] {font-family: 'Open Sans', arial, sans-serif !important;}
img {
outline: none;
text-decoration: none;
border:none;
-ms-interpolation-mode: bicubic;
max-width: 100%!important;
margin: 0;
padding: 0;
display: block;
}
table td {
border-collapse: collapse;
}
table {
border-collapse: collapse;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
</style>
</head>
<body style="margin: 0; padding: 0;">
<div style="font-size:0px;font-color:#ffffff;opacity:0;visibility:hidden;width:0;height:0;display:none;">Тестовое письмо</div>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#ededed">
</table>
</body>
</html>
@AntonOshurek
Copy link

Хорошая заготовка. Спасибо!)

@Dworyanov
Copy link

Спасибо за код!

@beastrough
Copy link

beastrough commented Aug 15, 2022

По-моему color вместо font-color должно быть в этой строке:

Screenshot (2)

@SilkRoss
Copy link

-_-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment