Last active
July 11, 2021 06:00
-
-
Save Cartmanishere/43f47fd9bb7de096ea6b2900980761a5 to your computer and use it in GitHub Desktop.
HTML template for Automating emails in Google Sheets blog post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | |
<head> | |
<!--[if gte mso 9]> | |
<xml> | |
<o:OfficeDocumentSettings> | |
<o:AllowPNG/> | |
<o:PixelsPerInch>96</o:PixelsPerInch> | |
</o:OfficeDocumentSettings> | |
</xml> | |
<![endif]--> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="x-apple-disable-message-reformatting"> | |
<!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]--> | |
<title></title> | |
<style type="text/css"> | |
table, td { color: #000000; } @media only screen and (min-width: 520px) { | |
.u-row { | |
width: 500px !important; | |
} | |
.u-row .u-col { | |
vertical-align: top; | |
} | |
.u-row .u-col-100 { | |
width: 500px !important; | |
} | |
} | |
@media (max-width: 520px) { | |
.u-row-container { | |
max-width: 100% !important; | |
padding-left: 0px !important; | |
padding-right: 0px !important; | |
} | |
.u-row .u-col { | |
min-width: 320px !important; | |
max-width: 100% !important; | |
display: block !important; | |
} | |
.u-row { | |
width: calc(100% - 40px) !important; | |
} | |
.u-col { | |
width: 100% !important; | |
} | |
.u-col > div { | |
margin: 0 auto; | |
} | |
} | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
table, | |
tr, | |
td { | |
vertical-align: top; | |
border-collapse: collapse; | |
} | |
p { | |
margin: 0; | |
} | |
.ie-container table, | |
.mso-container table { | |
table-layout: fixed; | |
} | |
* { | |
line-height: inherit; | |
} | |
a[x-apple-data-detectors='true'] { | |
color: inherit !important; | |
text-decoration: none !important; | |
} | |
</style> | |
</head> | |
<body class="clean-body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #e7e7e7;color: #000000"> | |
<!--[if IE]><div class="ie-container"><![endif]--> | |
<!--[if mso]><div class="mso-container"><![endif]--> | |
<table style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #e7e7e7;width:100%" cellpadding="0" cellspacing="0"> | |
<tbody> | |
<tr style="vertical-align: top"> | |
<td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top"> | |
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #e7e7e7;"><![endif]--> | |
<div class="u-row-container" style="padding: 0px;background-color: transparent"> | |
<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> | |
<div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;"> | |
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]--> | |
<!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]--> | |
<div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;"> | |
<div style="width: 100% !important;"> | |
<!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]--> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<h1 style="margin: 0px; line-height: 140%; text-align: left; word-wrap: break-word; font-weight: normal; font-family: arial,helvetica,sans-serif; font-size: 22px;"> | |
Hi <?= context.customerName ?>! | |
</h1> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!--[if (!mso)&(!IE)]><!--></div><!--<![endif]--> | |
</div> | |
</div> | |
<!--[if (mso)|(IE)]></td><![endif]--> | |
<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]--> | |
</div> | |
</div> | |
</div> | |
<div class="u-row-container" style="padding: 0px;background-color: transparent"> | |
<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> | |
<div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;"> | |
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]--> | |
<!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]--> | |
<div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;"> | |
<div style="width: 100% !important;"> | |
<!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]--> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<div style="line-height: 140%; text-align: left; word-wrap: break-word;"> | |
<p style="font-size: 14px; line-height: 140%;"><?= context.message ?></p> | |
</div> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!--[if (!mso)&(!IE)]><!--></div><!--<![endif]--> | |
</div> | |
</div> | |
<!--[if (mso)|(IE)]></td><![endif]--> | |
<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]--> | |
</div> | |
</div> | |
</div> | |
<div class="u-row-container" style="padding: 0px;background-color: transparent"> | |
<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;"> | |
<div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;"> | |
<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]--> | |
<!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]--> | |
<div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;"> | |
<div style="width: 100% !important;"> | |
<!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]--> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<div> | |
<style type="text/css"> | |
.tg {border-collapse:collapse;border-spacing:0;} | |
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; | |
overflow:hidden;padding:10px 5px;word-break:normal;} | |
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; | |
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;} | |
.tg .tg-nh17{font-family:serif !important;;font-size:100%;text-align:left;vertical-align:top} | |
.tg .tg-0lax{text-align:left;vertical-align:top} | |
.tg .tg-ilw0{font-family:serif !important;;text-align:left;vertical-align:top} | |
@media screen and (max-width: 767px) {.tg {width: auto !important;}.tg col {width: auto !important;}.tg-wrap {overflow-x: auto;-webkit-overflow-scrolling: touch;}}</style> | |
<div class="tg-wrap"><table class="tg"> | |
<thead> | |
<tr> | |
<th class="tg-0lax">Order #</th> | |
<th class="tg-0lax">Name</th> | |
<th class="tg-0lax">Status</th> | |
<th class="tg-ilw0">Delivery Date</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="tg-0lax"><?= context.orderNo ?></td> | |
<td class="tg-0lax"><?= context.customerName ?></td> | |
<td class="tg-0lax"><?= context.status ?></td> | |
<td class="tg-nh17"><?= context.deliveryDate ?></td> | |
</tr> | |
</tbody> | |
</table></div> | |
</div> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<table height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;border-top: 1px solid #BBBBBB;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%"> | |
<tbody> | |
<tr style="vertical-align: top"> | |
<td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;font-size: 0px;line-height: 0px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%"> | |
<span> </span> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<div style="line-height: 140%; text-align: left; word-wrap: break-word;"> | |
<p style="font-size: 14px; line-height: 140%; text-align: center;">Small Business @ 2019</p> | |
</div> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0"> | |
<tbody> | |
<tr> | |
<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left"> | |
<div align="center"> | |
<div style="display: table; max-width:-1px;"> | |
<!--[if (mso)|(IE)]><table width="-1" cellpadding="0" cellspacing="0" border="0"><tr><td style="border-collapse:collapse;" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse; mso-table-lspace: 0pt;mso-table-rspace: 0pt; width:-1px;"><tr><![endif]--> | |
<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]--> | |
</div> | |
</div> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!--[if (!mso)&(!IE)]><!--></div><!--<![endif]--> | |
</div> | |
</div> | |
<!--[if (mso)|(IE)]></td><![endif]--> | |
<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]--> | |
</div> | |
</div> | |
</div> | |
<!--[if (mso)|(IE)]></td></tr></table><![endif]--> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
<!--[if mso]></div><![endif]--> | |
<!--[if IE]></div><![endif]--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment