Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[email]: different ott templates for with and without verify btn

anandbaburajan1752192688ad
diff --git a/server/mail-templates/ott.html b/server/mail-templates/ott_with_verify_btn.html
similarity index 80%
rename from server/mail-templates/ott.html
rename to server/mail-templates/ott_with_verify_btn.html
index 4fbeec89a8..16557932c0 100644
--- a/server/mail-templates/ott.html
+++ b/server/mail-templates/ott_with_verify_btn.html
@@ -33,7 +33,7 @@
.wrap {
background-color: #fff;
padding: 30px;
- max-width: 525px;
+ max-width: auto;
margin: 0 auto;
border-radius: 5px;
}
@@ -64,7 +64,7 @@
}
.gutter {
- padding: 30px;
+ padding: 10px;
}
img {
@@ -80,38 +80,10 @@
color: #111;
}
- @media screen and (max-width: 600px) {
- .wrap {
- max-width: auto;
- }
-
- .gutter {
- padding: 10px;
- }
- }
-
.footer-icons {
padding: 4px !important;
width: 24px !important;
}
-
- .desktop-section {
- display: block;
- }
-
- .mobile-section {
- display: none;
- }
-
- @media screen and (max-width: 600px) {
- .desktop-section {
- display: none;
- }
-
- .mobile-section {
- display: block;
- }
- }
</style>
<body>
@@ -131,7 +103,7 @@
Verify your email address
</h2>
<hr style="margin: 32px 0; border: none; border-top: 1px solid #ddd" />
- <div class="mobile-section">
+ <div>
<p style="text-align: center">
Click on the button to verify your email.
</p>
@@ -183,36 +155,6 @@
</center>
</div>
</div>
- <div class="desktop-section">
- <p style="text-align: center">Use this code to verify your email</p>
- <div
- style="
- text-align: center;
- font-size: 14px;
- color: #666;
- margin-top: 20px;
- "
- >
- <center>
- <div
- style="
- background-color: #f6f6f6;
- border-radius: 6px;
- color: #787878;
- display: inline-block;
- letter-spacing: 3px;
- padding: 8px 14px;
- text-align: center;
- font-size: 18px;
- font-weight: bold;
- "
- target="_blank"
- >
- {{.VerificationCode}}
- </div>
- </center>
- </div>
- </div>
<hr
style="
margin-top: 32px;
diff --git a/server/mail-templates/ott_without_verify_btn.html b/server/mail-templates/ott_without_verify_btn.html
new file mode 100644
index 0000000000..44098bbda4
--- /dev/null
+++ b/server/mail-templates/ott_without_verify_btn.html
@@ -0,0 +1,204 @@
+<!DOCTYPE html>
+<html>
+ <meta content="text/html; charset=utf-8" />
+ <meta
+ name="viewport"
+ content="width=device-width, initial-scale=1, minimum-scale=1"
+ />
+ <style>
+ body {
+ background-color: #f0f1f3;
+ font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
+ font-size: 16px;
+ line-height: 27px;
+ margin: 0;
+ color: #444;
+ }
+
+ pre {
+ background: #f4f4f4f4;
+ padding: 2px;
+ }
+
+ table {
+ width: 100%;
+ border: 1px solid #ddd;
+ }
+
+ table td {
+ border-color: #ddd;
+ padding: 5px;
+ }
+
+ .wrap {
+ background-color: #fff;
+ padding: 30px;
+ max-width: 525px;
+ margin: 0 auto;
+ border-radius: 5px;
+ }
+
+ .button {
+ background: #0055d4;
+ border-radius: 3px;
+ text-decoration: none !important;
+ color: #fff !important;
+ font-weight: bold;
+ padding: 10px 30px;
+ display: inline-block;
+ }
+
+ .button:hover {
+ background: #111;
+ }
+
+ .footer {
+ text-align: center;
+ font-size: 12px;
+ color: #888;
+ }
+
+ .footer a {
+ color: #888;
+ margin-right: 5px;
+ }
+
+ .gutter {
+ padding: 30px;
+ }
+
+ img {
+ max-width: 100%;
+ height: auto;
+ }
+
+ a {
+ color: #0055d4;
+ }
+
+ a:hover {
+ color: #111;
+ }
+
+ .footer-icons {
+ padding: 4px !important;
+ width: 24px !important;
+ }
+ </style>
+
+ <body>
+ <div class="gutter" style="padding: 4px">&nbsp;</div>
+ <div
+ class="wrap"
+ style="
+ background-color: rgb(255, 255, 255);
+ padding: 30px;
+ max-width: 525px;
+ margin: 0 auto;
+ border-radius: 5px;
+ font-size: 16px;
+ "
+ >
+ <h2 style="text-align: center; margin-bottom: 16px">
+ Verify your email address
+ </h2>
+ <hr style="margin: 32px 0; border: none; border-top: 1px solid #ddd" />
+ <div>
+ <p style="text-align: center">Use this code to verify your email</p>
+ <div
+ style="
+ text-align: center;
+ font-size: 14px;
+ color: #666;
+ margin-top: 20px;
+ "
+ >
+ <center>
+ <div
+ style="
+ background-color: #f6f6f6;
+ border-radius: 6px;
+ color: #787878;
+ display: inline-block;
+ letter-spacing: 3px;
+ padding: 8px 14px;
+ text-align: center;
+ font-size: 18px;
+ font-weight: bold;
+ "
+ target="_blank"
+ >
+ {{.VerificationCode}}
+ </div>
+ </center>
+ </div>
+ </div>
+ <hr
+ style="
+ margin-top: 32px;
+ margin-bottom: 32px;
+ border: none;
+ border-top: 1px solid #ddd;
+ "
+ />
+ <p style="text-align: center; font-size: 14px; color: #666">
+ If you need help, just hit the reply button!
+ </p>
+ </div>
+ <br />
+ <div
+ class="footer"
+ style="text-align: center; font-size: 12px; color: rgb(136, 136, 136)"
+ >
+ <div>
+ <a href="https://ente.io" target="_blank"
+ ><img
+ src="https://email-assets.ente.io/ente-green.png"
+ style="width: 100px; padding: 24px"
+ title="Ente"
+ alt="Ente"
+ /></a>
+ </div>
+ <div>
+ <a href="https://fosstodon.org/@ente" target="_blank"
+ ><img
+ src="https://email-assets.ente.io/mastodon-icon.png"
+ class="footer-icons"
+ style="width: 24px; padding: 4px"
+ title="Mastodon"
+ alt="Mastodon"
+ /></a>
+ <a href="https://twitter.com/enteio" target="_blank"
+ ><img
+ src="https://email-assets.ente.io/twitter-icon.png"
+ class="footer-icons"
+ style="width: 24px; padding: 4px"
+ title="Twitter"
+ alt="Twitter"
+ /></a>
+ <a href="https://discord.ente.io" target="_blank"
+ ><img
+ src="https://email-assets.ente.io/discord-icon.png"
+ class="footer-icons"
+ style="width: 24px; padding: 4px"
+ title="Discord"
+ alt="Discord"
+ /></a>
+ <a href="https://github.com/ente-io" target="_blank"
+ ><img
+ src="https://email-assets.ente.io/github-icon.png"
+ class="footer-icons"
+ style="width: 24px; padding: 4px"
+ title="GitHub"
+ alt="GitHub"
+ /></a>
+ </div>
+ <p>
+ Ente Technologies, Inc.
+ <br />
+ 1111B S Governors Ave 6032 Dover, DE 19904
+ </p>
+ <br />
+ </div>
+ </body>
+</html>