I already know that we can edit body of email templates in the console, but that still produces somewhat weird HTML output. Sometimes it looks broken in some email clients and I would like to just use plain text or customize full html with my styling. Also it would be great if we could avoid pinging Google in every email since Appwrite injects fonts in final output, maybe just an option to turn this off?
As an example this is part of final email that is sent, which for some reason has 2 <head> elements:
<!doctype html>
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap">
<style>
body {
padding: 32px;
line-height: 1.5;
color: #616b7c;
font-size: 15px;
font-weight: 400;
font-family: "Inter", sans-serif;
background-color: #ffffff;
margin: 0;
padding: 0;
}
...
more css
...
</style>
</head>
<head>
<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=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap"
rel="stylesheet">
<style>
a { color:currentColor; word-break: break-all; }
body {
background-color: #ffffff;
padding: 32px;
color: #616B7C;
font-size: 15px;
font-family: 'Inter', sans-serif;
line-height: 150%;
}
table {
width: 100%;
border-spacing: 0 !important;
}
...
even more css
...
Which template is this?
Recommended threads
- How to implement - Invite only OAuth log...
I am working on a web app where users submit their email in the invitation page. OAuth should only allow signups from approved users. Existing users can sign-in...
- Different behavior between self hosted a...
I am wondering, what is true: Here is stated, that queries of relationship attributes are not supported: https://appwrite.io/threads/1248091621074141214 https:...
- How to implement password reset/recovery...
Good day everyone. I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I ...