mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
email deliverability improvements (#405)
This commit is contained in:
parent
de28ad0e93
commit
397fbf4f47
@ -7,27 +7,24 @@
|
|||||||
<title>Welcome to zrok!</title>
|
<title>Welcome to zrok!</title>
|
||||||
<meta name="description" content="Please click to create your zrok account.">
|
<meta name="description" content="Please click to create your zrok account.">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 25;
|
padding: 25px;
|
||||||
font-family: 'JetBrains Mono', 'Courier New', monospace;
|
font-family: 'JetBrains Mono', 'Courier New', monospace;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #3b2693;
|
background-color: #3b2693;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a:link {
|
a:link {
|
||||||
color: #00d7e4;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:visited {
|
a:visited {
|
||||||
color: #00d7e4;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
@ -35,11 +32,6 @@
|
|||||||
color: #ff0100;
|
color: #ff0100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.claim {
|
|
||||||
font-size: 2em;
|
|
||||||
margin: 0.5em 0 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 62em;
|
width: 62em;
|
||||||
margin: 2em auto;
|
margin: 2em auto;
|
||||||
@ -47,8 +39,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: .25em;
|
margin: .25em;
|
||||||
@ -132,23 +122,23 @@
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="banner" style="margin: auto;">
|
<div class="banner" style="margin: auto;">
|
||||||
<img src="https://zrok.io/wp-content/uploads/2023/01/welcome.jpg" width="363px" height="500px" style="padding-bottom: 10px;"/>
|
<img src="https://zrok.io/wp-content/uploads/2023/01/welcome.jpg" width="363px" height="500px" style="padding-bottom: 10px;" alt="welcome to zrok"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="cta" style="text-align: center;">
|
<div class="cta" style="text-align: center;">
|
||||||
<p style="text-align: center;">Please click the button below to create your zrok account for {{ .EmailAddress }}.</p>
|
<p style="text-align: center; color: white;">Please click the button below to create your zrok account for {{ .EmailAddress }}.</p>
|
||||||
<a class="btn btn-primary" href="{{ .VerifyUrl }}" style="color: #ffffff;">Create Account</a>
|
<a class="btn btn-primary" href="{{ .VerifyUrl }}" style="color: #ffffff;">Create Account</a>
|
||||||
<a class="btn btn-secondary" href="https://docs.zrok.io/" style="color: #ffffff">Documentation</a>
|
<a class="btn btn-secondary" href="https://docs.zrok.io/" style="color: #ffffff">Documentation</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table border="0" cellpadding="0" cellspacing="0" align="center" class="about">
|
<table border="0" cellpadding="0" cellspacing="0" align="center" class="about">
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="https://github.com/openziti/zrok" target="_blank">github.com/openziti/zrok</a></td>
|
<td><a href="https://github.com/openziti/zrok" target="_blank" style="color: white;">github.com/openziti/zrok</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ .Version }}</td>
|
<td>{{ .Version }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p style="text-align: center;"></a>Copyright © 2023 <a href="http://www.netfoundry.io" target="_blank" style="color: #00d7e4;">NetFoundry, Inc.</a></p>
|
<p style="text-align: center;">Copyright © 2023 <a href="http://www.netfoundry.io" target="_blank" style="color: white;">NetFoundry, Inc.</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ func sendVerificationEmail(emailAddress, token string) error {
|
|||||||
msg.SetImportance(mail.ImportanceHigh)
|
msg.SetImportance(mail.ImportanceHigh)
|
||||||
msg.SetBodyString(mail.TypeTextPlain, plainBody)
|
msg.SetBodyString(mail.TypeTextPlain, plainBody)
|
||||||
msg.SetBodyString(mail.TypeTextHTML, htmlBody)
|
msg.SetBodyString(mail.TypeTextHTML, htmlBody)
|
||||||
|
msg.SetHeader("List-Unsubscribe", "<mailto: invite@zrok.io?subject=unsubscribe>")
|
||||||
|
|
||||||
client, err := mail.NewClient(cfg.Email.Host,
|
client, err := mail.NewClient(cfg.Email.Host,
|
||||||
mail.WithPort(cfg.Email.Port),
|
mail.WithPort(cfg.Email.Port),
|
||||||
|
Loading…
Reference in New Issue
Block a user