Fix template rendering and use verify email template
email html is weird, some stuff isn't supported.
1 files changed, 45 insertions, 40 deletions
diff --git a/assets/email_templates/phone_removed.html b/assets/email_templates/phone_removed.html
index 1eb52fbe..65807e29 100644
--- a/assets/email_templates/phone_removed.html
+++ b/assets/email_templates/phone_removed.html
@@ -4,61 +4,66 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="Content-Type" content="text/html charset=UTF-8" />
<title>Phone Removed From {instanceName} Account</title>
<style>
* {
font-size: 16px;
line-height: 24px;
+ font-family: Arial, Helvetica, sans-serif;
}
- body {
+ p {
color: white;
- font-family: Arial, Helvetica, sans-serif;
- background-color: #202225;
+ }
+ .ExternalClass {
+ width: 100%;
}
</style>
</head>
<body>
- <img
- src="https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg"
- alt="Branding"
- style="
- width: 100%;
- max-width: 200px;
- margin: 0 auto;
- display: block;
- padding: 20px;
- "
- />
- <div
- style="
- width: 100%;
- max-width: 500px;
- margin: 0 auto;
- padding: 40px 50px;
- background-color: rgba(50, 53, 59, 1);
- border-radius: 5px;
- "
- >
- <p
+ <div style="background-color: #202225;">
+ <img
+ src="https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg"
+ alt="Branding"
+ style="
+ width: 100%;
+ max-width: 200px;
+ margin: 0 auto;
+ display: block;
+ padding: 20px;
+ "
+ />
+ <div
style="
- font-weight: 600;
- font-size: 20px;
- letter-spacing: 0.27px;
- line-height: 24px;
+ width: 100%;
+ max-width: 500px;
+ margin: 0 auto;
+ padding: 40px 50px;
+ background-color: #32353b;
+ border-radius: 5px;
"
>
- Hey {username},
- </p>
- <p>
- Your phone number ********{phoneNumber} was recently removed
- from this account and added to a different {instanceName}
- account.
- </p>
- <p>
- Please note that your phone number can only be linked to one
- {instanceName} account at a time.
- </p>
+ <p
+ style="
+ font-weight: 600;
+ font-size: 20px;
+ letter-spacing: 0.27px;
+ line-height: 24px;
+ "
+ >
+ Hey {userUsername},
+ </p>
+ <p>
+ Your phone number ********{phoneNumber} was recently removed
+ from this account and added to a different {instanceName}
+ account.
+ </p>
+ <p>
+ Please note that your phone number can only be linked to one
+ {instanceName} account at a time.
+ </p>
+ </div>
</div>
</body>
</html>
|