feat: Enhance email templates and add plain text support for improved deliverability
This commit is contained in:
@@ -12,64 +12,99 @@
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
overflow: hidden;
|
||||
}
|
||||
.header {
|
||||
background-color: #2D7738;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
.content {
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
border-radius: 0 0 5px 5px;
|
||||
padding: 30px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.security-note {
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
background-color: #fff8e1;
|
||||
border-left: 3px solid #ffd54f;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.button-container {
|
||||
margin: 25px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
background-color: #2D7738;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 10px 20px;
|
||||
padding: 12px 25px;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
.link-help {
|
||||
margin-top: 20px;
|
||||
padding: 15px;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 5px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 20px;
|
||||
font-size: 12px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #777;
|
||||
border-top: 1px solid #eaeaea;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>Password Reset</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Hello {{ username }},</p>
|
||||
|
||||
<p>We received a request to reset your password. If you didn't make this request, you can safely ignore this email.</p>
|
||||
|
||||
<p>To reset your password, click the button below:</p>
|
||||
|
||||
<div style="margin: 30px 0; text-align: center;">
|
||||
<a href="{{ reset_url }}" class="button">Reset Password</a>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Password Reset</h1>
|
||||
</div>
|
||||
|
||||
<p>Or you can copy and paste this link into your browser:</p>
|
||||
<p>{{ reset_url }}</p>
|
||||
<div class="content">
|
||||
<p>Hello {{ username }},</p>
|
||||
|
||||
<p>We received a request to reset your password for your LeagueLedger account. You can set a new password by clicking the button below:</p>
|
||||
|
||||
<div class="button-container">
|
||||
<a href="{{ reset_url }}" class="button">Reset My Password</a>
|
||||
</div>
|
||||
|
||||
<div class="security-note">
|
||||
<p><strong>Security Note:</strong> This link will expire in 24 hours for your protection. If you did not request a password reset, please disregard this email and consider reviewing your account security.</p>
|
||||
</div>
|
||||
|
||||
<div class="link-help">
|
||||
<p>If the button above doesn't work, you can copy and paste this link into your browser:</p>
|
||||
<p><a href="{{ reset_url }}">Reset your password</a></p>
|
||||
</div>
|
||||
|
||||
<p>With LeagueLedger, you can continue to:</p>
|
||||
<ul>
|
||||
<li>Track your team's progress in pub quiz events</li>
|
||||
<li>View your rank on the leaderboard</li>
|
||||
<li>Manage your team memberships</li>
|
||||
<li>Redeem QR codes for points</li>
|
||||
</ul>
|
||||
|
||||
<p>Best regards,<br>The LeagueLedger Team</p>
|
||||
</div>
|
||||
|
||||
<p>This link will expire in 24 hours.</p>
|
||||
|
||||
<p>Best regards,<br>The LeagueLedger Team</p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>© LeagueLedger. All rights reserved.</p>
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<div class="footer">
|
||||
<p>© 2025 LeagueLedger. All rights reserved.</p>
|
||||
<p>This email was sent in response to your password reset request.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user