Load email content from templates instead of constructing it with javascript

This commit is contained in:
Martin Kleinschrodt 2021-10-16 16:10:27 +02:00
parent 96c0e69cee
commit dc98368f5b
12 changed files with 1742 additions and 1667 deletions

View File

@ -1,356 +1,348 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Cutom Font Embed CSS -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet" type="text/css" />
<title>Pure VPN</title>
</head>
<body
leftmargin="0"
marginwidth="0"
topmargin="0"
marginheight="0"
offset="0"
style="
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
background-color: #ffffff;
height: 100% !important;
width: 100% !important;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
width: 100%;
margin: auto;
max-width: 600px;
font-family: Verdana, Geneva, sans-serif;
color: #2b2b2b;
font-size: 14px;
line-height: 1.4;
background: url('https://images.purevpn-tools.com/public/images/2791_eml_pur_bg_dull.png') #fff
no-repeat top;
background-size: contain;
"
>
<tr>
<!-- Spacing -->
<td style="height: 48px"></td>
</tr>
<tr>
<td style="text-align: center">
<img src="https://images.purevpn-tools.com/public/images/2791_eml_pure_logo.png" alt="logo" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 52px"></td>
</tr>
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<td style="color: #000; font-size: 22px; font-weight: bold; line-height: 34px">
Hi there!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 16px; font-weight: normal; line-height: 24px">
You have been asked by {{ invitedBy }} to confirm your membership with the PurePass
organization <strong>{{ orgName }}</strong>.
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<a href="{{ acceptInviteUrl }}"
><button
style="
align-items: center;
padding: 23px 50px;
height: 60px;
background: #28c675;
border-radius: 50px;
cursor: pointer;
border: 0;
font-weight: bold;
font-size: 14px;
line-height: 100%;
text-align: center;
color: #ffffff;
"
>
Confirm Membership
</button></a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td style="border-bottom: 2px dashed #d9d3de"></td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td
style="
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 24px;
color: #78747b;
"
>
Have a great day! we hope youll have a great experience with us! <br />
<br />
Got a question? Get in touch with via 24/7 Live Chat or email us at help@purevpn.com.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 80px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background: #fbfbfc">
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="background: #fbfbfc; max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td style="max-width: 50%">
<img
src="https://images.purevpn-tools.com/public/images/2791_eml_pure_btm_logo.png"
alt="bottom_logo"
/>
</td>
<td style="max-width: 50%">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
align="right"
style="text-align: center"
>
<tr>
<td>
<a href="https://www.facebook.com/PureVPNcom"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_fb_icon.png"
alt="facebook"
/></a>
</td>
<td>
<a href="https://twitter.com/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_twtr_icon.png"
alt="twitter"
/></a>
</td>
<td>
<a href="https://www.linkedin.com/company/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_lkndin_icon.png"
alt="linked in"
/></a>
</td>
<td>
<a href="https://www.youtube.com/user/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_ytube_icon.png"
alt="youtube"
/></a>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">Download PureVPN on your:</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/windows/app/purevpn_setup.exe"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Windows</a
>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/mac/app/purevpn_setup.pkg"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Mac</a
>
<a
href="https://play.google.com/store/apps/details?id=com.gaditek.purevpnics&hl=en"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Android</a
>
<a
href="https://itunes.apple.com/us/app/purevpn-complete-online-privacy/id594506418?mt=8"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>iOS</a
>
<a
href="https://chrome.google.com/webstore/detail/purevpn-free-vpn-proxy-un/bfidboloedlamgdmenmlbipfnccokknp"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Chrome</a
>
<a
href="https://addons.mozilla.org/en-US/firefox/addon/purevpn-for-privacy-security/"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
"
>Firefox</a
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 20px"></td>
</tr>
<tr>
<td style="color: #000; font-size: 11px; font-weight: bold">Got Questions?</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 5px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
Contact to our
<a
href="https://secure.livechatinc.com/licence/4454601/open_chat.cgi?utm_source=Expired&utm_medium=Email&utm_campaign=360%20is%20Coming%20Live%20Chat"
style="color: #2c8fdc; text-decoration: none"
>
24x7 Live Chat!</a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 15px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
@ 2007 - 2020 PureVPN All Rights Reserved
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 35px"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
You have been asked by {{ invitedBy }} to confirm your membership
with the Padloc organization <strong>{{ orgName }}</strong>.
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ acceptInviteUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Confirm Membership</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
You have been asked by {{ invitedBy }} to confirm your membership with the Padloc organization {{ orgName }}.
Confirm Membership: {{ acceptInviteUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -1,236 +1,290 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${title}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 14px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
>${preview}</span
>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
${content}
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>${address}</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
>Your email verification code is {{ code }}.</span
>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Your email verification code is:
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
background-color: #f6f6f6;
padding: 15px;
border-radius: 10px;
font-size: 30px;
font-family: monospace;
text-align: center;
letter-spacing: 0.2em;
"
>
{{ code }}
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
Your email verification code is:
{{ code }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

5
assets/email/error.txt Normal file
View File

@ -0,0 +1,5 @@
The following error occurred at {{ time }}:
Code: {{ code }}
Message: {{ message }}
Event ID: {{ eventId }}`

View File

@ -1,356 +1,349 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Cutom Font Embed CSS -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet" type="text/css" />
<title>Pure VPN</title>
</head>
<body
leftmargin="0"
marginwidth="0"
topmargin="0"
marginheight="0"
offset="0"
style="
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
background-color: #ffffff;
height: 100% !important;
width: 100% !important;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
width: 100%;
margin: auto;
max-width: 600px;
font-family: Verdana, Geneva, sans-serif;
color: #2b2b2b;
font-size: 14px;
line-height: 1.4;
background: url('https://images.purevpn-tools.com/public/images/2791_eml_pur_bg_dull.png') #fff
no-repeat top;
background-size: contain;
"
>
<tr>
<!-- Spacing -->
<td style="height: 48px"></td>
</tr>
<tr>
<td style="text-align: center">
<img src="https://images.purevpn-tools.com/public/images/2791_eml_pure_logo.png" alt="logo" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 52px"></td>
</tr>
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<td style="color: #000; font-size: 22px; font-weight: bold; line-height: 34px">
Hi there!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 16px; font-weight: normal; line-height: 24px">
Good news! {{ invitee }} has accepted your invite to join
<strong>{{ orgName }}</strong>. Please confirm their membership to complete the process!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<a href="{{ confirmMemberUrl }}"
><button
style="
align-items: center;
padding: 23px 50px;
height: 60px;
background: #28c675;
border-radius: 50px;
cursor: pointer;
border: 0;
font-weight: bold;
font-size: 14px;
line-height: 100%;
text-align: center;
color: #ffffff;
"
>
Confirm Membership
</button></a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td style="border-bottom: 2px dashed #d9d3de"></td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td
style="
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 24px;
color: #78747b;
"
>
Have a great day! we hope youll have a great experience with us! <br />
<br />
Got a question? Get in touch with via 24/7 Live Chat or email us at help@purevpn.com.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 80px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background: #fbfbfc">
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="background: #fbfbfc; max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td style="max-width: 50%">
<img
src="https://images.purevpn-tools.com/public/images/2791_eml_pure_btm_logo.png"
alt="bottom_logo"
/>
</td>
<td style="max-width: 50%">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
align="right"
style="text-align: center"
>
<tr>
<td>
<a href="https://www.facebook.com/PureVPNcom"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_fb_icon.png"
alt="facebook"
/></a>
</td>
<td>
<a href="https://twitter.com/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_twtr_icon.png"
alt="twitter"
/></a>
</td>
<td>
<a href="https://www.linkedin.com/company/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_lkndin_icon.png"
alt="linked in"
/></a>
</td>
<td>
<a href="https://www.youtube.com/user/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_ytube_icon.png"
alt="youtube"
/></a>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">Download PureVPN on your:</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/windows/app/purevpn_setup.exe"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Windows</a
>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/mac/app/purevpn_setup.pkg"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Mac</a
>
<a
href="https://play.google.com/store/apps/details?id=com.gaditek.purevpnics&hl=en"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Android</a
>
<a
href="https://itunes.apple.com/us/app/purevpn-complete-online-privacy/id594506418?mt=8"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>iOS</a
>
<a
href="https://chrome.google.com/webstore/detail/purevpn-free-vpn-proxy-un/bfidboloedlamgdmenmlbipfnccokknp"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Chrome</a
>
<a
href="https://addons.mozilla.org/en-US/firefox/addon/purevpn-for-privacy-security/"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
"
>Firefox</a
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 20px"></td>
</tr>
<tr>
<td style="color: #000; font-size: 11px; font-weight: bold">Got Questions?</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 5px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
Contact to our
<a
href="https://secure.livechatinc.com/licence/4454601/open_chat.cgi?utm_source=Expired&utm_medium=Email&utm_campaign=360%20is%20Coming%20Live%20Chat"
style="color: #2c8fdc; text-decoration: none"
>
24x7 Live Chat!</a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 15px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
@ 2007 - 2020 PureVPN All Rights Reserved
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 35px"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Good news! {{ invitee }} has accepted your invite to join
<strong>{{ orgName }}</strong>. Please confirm their membership to
complete the process!
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ confirmMemberUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Confirm Membership</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
Good news! {{ invitee }} has accepted your invite to join {{ orgName }}. Please confirm their membership to complete the process!
Confirm Membership: {{ confirmMemberUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -1,356 +1,348 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Cutom Font Embed CSS -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet" type="text/css" />
<title>Pure VPN</title>
</head>
<body
leftmargin="0"
marginwidth="0"
topmargin="0"
marginheight="0"
offset="0"
style="
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
background-color: #ffffff;
height: 100% !important;
width: 100% !important;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
width: 100%;
margin: auto;
max-width: 600px;
font-family: Verdana, Geneva, sans-serif;
color: #2b2b2b;
font-size: 14px;
line-height: 1.4;
background: url('https://images.purevpn-tools.com/public/images/2791_eml_pur_bg_dull.png') #fff
no-repeat top;
background-size: contain;
"
>
<tr>
<!-- Spacing -->
<td style="height: 48px"></td>
</tr>
<tr>
<td style="text-align: center">
<img src="https://images.purevpn-tools.com/public/images/2791_eml_pure_logo.png" alt="logo" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 52px"></td>
</tr>
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<td style="color: #000; font-size: 22px; font-weight: bold; line-height: 34px">
Hi there!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 16px; font-weight: normal; line-height: 24px">
Good news! You now have access to the PurePass organization
<strong>{{ orgName }}</strong>.
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<a href="{{ openAppUrl }}"
><button
style="
align-items: center;
padding: 23px 50px;
height: 60px;
background: #28c675;
border-radius: 50px;
cursor: pointer;
border: 0;
font-weight: bold;
font-size: 14px;
line-height: 100%;
text-align: center;
color: #ffffff;
"
>
Open PurePass
</button></a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td style="border-bottom: 2px dashed #d9d3de"></td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td
style="
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 24px;
color: #78747b;
"
>
Have a great day! we hope youll have a great experience with us! <br />
<br />
Got a question? Get in touch with via 24/7 Live Chat or email us at help@purevpn.com.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 80px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background: #fbfbfc">
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="background: #fbfbfc; max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td style="max-width: 50%">
<img
src="https://images.purevpn-tools.com/public/images/2791_eml_pure_btm_logo.png"
alt="bottom_logo"
/>
</td>
<td style="max-width: 50%">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
align="right"
style="text-align: center"
>
<tr>
<td>
<a href="https://www.facebook.com/PureVPNcom"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_fb_icon.png"
alt="facebook"
/></a>
</td>
<td>
<a href="https://twitter.com/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_twtr_icon.png"
alt="twitter"
/></a>
</td>
<td>
<a href="https://www.linkedin.com/company/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_lkndin_icon.png"
alt="linked in"
/></a>
</td>
<td>
<a href="https://www.youtube.com/user/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_ytube_icon.png"
alt="youtube"
/></a>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">Download PureVPN on your:</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/windows/app/purevpn_setup.exe"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Windows</a
>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/mac/app/purevpn_setup.pkg"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Mac</a
>
<a
href="https://play.google.com/store/apps/details?id=com.gaditek.purevpnics&hl=en"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Android</a
>
<a
href="https://itunes.apple.com/us/app/purevpn-complete-online-privacy/id594506418?mt=8"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>iOS</a
>
<a
href="https://chrome.google.com/webstore/detail/purevpn-free-vpn-proxy-un/bfidboloedlamgdmenmlbipfnccokknp"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Chrome</a
>
<a
href="https://addons.mozilla.org/en-US/firefox/addon/purevpn-for-privacy-security/"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
"
>Firefox</a
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 20px"></td>
</tr>
<tr>
<td style="color: #000; font-size: 11px; font-weight: bold">Got Questions?</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 5px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
Contact to our
<a
href="https://secure.livechatinc.com/licence/4454601/open_chat.cgi?utm_source=Expired&utm_medium=Email&utm_campaign=360%20is%20Coming%20Live%20Chat"
style="color: #2c8fdc; text-decoration: none"
>
24x7 Live Chat!</a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 15px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
@ 2007 - 2020 PureVPN All Rights Reserved
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 35px"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Good news! You now have access to the Padloc organization
<strong>{{ orgName }}</strong>.
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ openAppUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Open Padloc</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,8 @@
Hi there!
Good news! You now have access to the Padloc organization {{ orgName }}.
Open Padloc: {{ openAppUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -1,356 +1,348 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Cutom Font Embed CSS -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet" type="text/css" />
<title>Pure VPN</title>
</head>
<body
leftmargin="0"
marginwidth="0"
topmargin="0"
marginheight="0"
offset="0"
style="
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
background-color: #ffffff;
height: 100% !important;
width: 100% !important;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
width: 100%;
margin: auto;
max-width: 600px;
font-family: Verdana, Geneva, sans-serif;
color: #2b2b2b;
font-size: 14px;
line-height: 1.4;
background: url('https://images.purevpn-tools.com/public/images/2791_eml_pur_bg_dull.png') #fff
no-repeat top;
background-size: contain;
"
>
<tr>
<!-- Spacing -->
<td style="height: 48px"></td>
</tr>
<tr>
<td style="text-align: center">
<img src="https://images.purevpn-tools.com/public/images/2791_eml_pure_logo.png" alt="logo" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 52px"></td>
</tr>
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<td style="color: #000; font-size: 22px; font-weight: bold; line-height: 34px">
Hi there!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 16px; font-weight: normal; line-height: 24px">
You have been invited by {{ invitedBy }} to join their PurePass organization
<strong>{{ orgName }}</strong>!
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<a href="{{ acceptInviteUrl }}"
><button
style="
align-items: center;
padding: 23px 50px;
height: 60px;
background: #28c675;
border-radius: 50px;
cursor: pointer;
border: 0;
font-weight: bold;
font-size: 14px;
line-height: 100%;
text-align: center;
color: #ffffff;
"
>
Join {{ orgName }}
</button></a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td style="border-bottom: 2px dashed #d9d3de"></td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 40px"></td>
</tr>
<tr>
<td
style="
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 24px;
color: #78747b;
"
>
Have a great day! we hope youll have a great experience with us! <br />
<br />
Got a question? Get in touch with via 24/7 Live Chat or email us at help@purevpn.com.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 80px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background: #fbfbfc">
<tr>
<td>
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="background: #fbfbfc; max-width: 450px; margin: auto; padding: 0 15px"
>
<tr>
<!-- Spacing -->
<td style="height: 30px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td style="max-width: 50%">
<img
src="https://images.purevpn-tools.com/public/images/2791_eml_pure_btm_logo.png"
alt="bottom_logo"
/>
</td>
<td style="max-width: 50%">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
align="right"
style="text-align: center"
>
<tr>
<td>
<a href="https://www.facebook.com/PureVPNcom"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_fb_icon.png"
alt="facebook"
/></a>
</td>
<td>
<a href="https://twitter.com/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_twtr_icon.png"
alt="twitter"
/></a>
</td>
<td>
<a href="https://www.linkedin.com/company/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_lkndin_icon.png"
alt="linked in"
/></a>
</td>
<td>
<a href="https://www.youtube.com/user/purevpn"
><img
src="https://images.purevpn-tools.com/public/images/2791_eml_ytube_icon.png"
alt="youtube"
/></a>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">Download PureVPN on your:</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/windows/app/purevpn_setup.exe"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Windows</a
>
<a
href="https://purevpn-dialer-assets.s3.amazonaws.com/mac/app/purevpn_setup.pkg"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Mac</a
>
<a
href="https://play.google.com/store/apps/details?id=com.gaditek.purevpnics&hl=en"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Android</a
>
<a
href="https://itunes.apple.com/us/app/purevpn-complete-online-privacy/id594506418?mt=8"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>iOS</a
>
<a
href="https://chrome.google.com/webstore/detail/purevpn-free-vpn-proxy-un/bfidboloedlamgdmenmlbipfnccokknp"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
border-right: 1px solid #78747b;
padding-right: 5px;
"
>Chrome</a
>
<a
href="https://addons.mozilla.org/en-US/firefox/addon/purevpn-for-privacy-security/"
style="
text-decoration: none;
color: #2c8fdc;
font-size: 11px;
"
>Firefox</a
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 10px"></td>
</tr>
<tr>
<td>
<hr style="border: 0; border-bottom: 1px solid #eae6ed" />
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 20px"></td>
</tr>
<tr>
<td style="color: #000; font-size: 11px; font-weight: bold">Got Questions?</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 5px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
Contact to our
<a
href="https://secure.livechatinc.com/licence/4454601/open_chat.cgi?utm_source=Expired&utm_medium=Email&utm_campaign=360%20is%20Coming%20Live%20Chat"
style="color: #2c8fdc; text-decoration: none"
>
24x7 Live Chat!</a
>
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 15px"></td>
</tr>
<tr>
<td style="color: #78747b; font-size: 11px">
@ 2007 - 2020 PureVPN All Rights Reserved
</td>
</tr>
<tr>
<!-- Spacing -->
<td style="height: 35px"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{{ title }}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class="body"] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table[class="body"] p,
table[class="body"] ul,
table[class="body"] ol,
table[class="body"] td,
table[class="body"] span,
table[class="body"] a {
font-size: 16px !important;
}
table[class="body"] .wrapper,
table[class="body"] .article {
padding: 10px !important;
}
table[class="body"] .content {
padding: 0 !important;
}
table[class="body"] .container {
padding: 0 !important;
width: 100% !important;
}
table[class="body"] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table[class="body"] .btn table {
width: 100% !important;
}
table[class="body"] .btn a {
width: 100% !important;
}
table[class="body"] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
.btn-primary table td:hover {
background-color: #3498db !important;
}
.btn-primary a:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
}
</style>
</head>
<body
class=""
style="
background-color: #f6f6f6;
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 14px;
line-height: 1.4;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="body"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background-color: #f6f6f6;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
<td
class="container"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
display: block;
margin: 0 auto;
max-width: 580px;
padding: 10px;
width: 580px;
"
>
<div
class="content"
style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px"
>
<!-- START CENTERED WHITE CONTAINER -->
<span
class="preheader"
style="
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0;
"
></span>
<table
class="main"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
background: #ffffff;
border-radius: 5px;
"
>
<!-- START MAIN CONTENT AREA -->
<tr>
<td
class="wrapper"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
box-sizing: border-box;
padding: 20px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Hi there!
</p>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
You have been invited by <strong>{{ invitedBy }}</strong> to join
their Padloc organization <strong>{{ orgName }}</strong>!
</p>
<table
border="0"
cellpadding="0"
cellspacing="0"
class="btn btn-primary"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
box-sizing: border-box;
"
>
<tbody>
<tr>
<td
align="left"
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
padding-bottom: 15px;
"
>
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: auto;
"
>
<tbody>
<tr>
<td
style="
font-family: sans-serif;
font-size: 14px;
vertical-align: top;
background-color: #3498db;
border-radius: 5px;
text-align: center;
"
>
<a
href="{{ acceptInviteUrl }}"
target="_blank"
style="
display: inline-block;
color: #ffffff;
background-color: #3498db;
border: solid 1px #3498db;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-size: 14px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-transform: capitalize;
border-color: #3498db;
"
>Join {{ orgName }}</a
>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p
style="
font-family: sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
margin-bottom: 15px;
"
>
Have a great day!
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%;
"
>
<tr>
<td
class="content-block"
style="
font-family: sans-serif;
vertical-align: top;
padding-bottom: 10px;
padding-top: 10px;
font-size: 12px;
color: #999999;
text-align: center;
"
>
<span
class="apple-link"
style="color: #999999; font-size: 12px; text-align: center"
>This email was sent to you by Padloc (https://padloc.app). If you have any
questions, please don't hesitate to contact us at support@padloc.app!</span
>
<!--<br> Don't like these emails? <a href="" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>.-->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top">&nbsp;</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,9 @@
Hi there!
You have been invited by {{ invitedBy }} to join their Padloc organization {{ orgName }}!
Join {{ orgName }}: {{ acceptInviteUrl }}
Have a great day!
This email was sent to you by Padloc (https://padloc.app). If you have any questions, please don't hesitate to contact us at support@padloc.app!

View File

@ -59,31 +59,34 @@ export class SMTPSender implements Messenger {
const files = readdirSync(templateDir);
for (const fileName of files) {
this._templates.set(fileName.replace(/\.html$/, ""), readFileSync(resolve(templateDir, fileName), "utf-8"));
this._templates.set(fileName, readFileSync(resolve(templateDir, fileName), "utf-8"));
}
}
private _getMessageContent<T extends MessageData>(message: Message<T>) {
let html = this._templates.get(message.template);
if (!html) {
let html = this._templates.get(`${message.template}.html`);
let text = this._templates.get(`${message.template}.txt`);
if (!html || !text) {
throw new Err(ErrorCode.SERVER_ERROR, `Template not found: ${message.template}`);
}
for (const [name, value] of Object.entries(message.data)) {
for (const [name, value] of Object.entries({ title: message.title, ...message.data })) {
html = html.replace(new RegExp(`{{ ?${name} ?}}`, "gi"), value);
text = text.replace(new RegExp(`{{ ?${name} ?}}`, "gi"), value);
}
return { html };
return { html, text };
}
async send<T extends MessageData>(email: string, message: Message<T>) {
const { html } = this._getMessageContent(message);
const { html, text } = this._getMessageContent(message);
let opts = {
from: this.config.from || this.config.user,
to: email,
subject: message.title,
text: html,
text,
html,
};