first commit
This commit is contained in:
125
templates/email/activation.html
Normal file
125
templates/email/activation.html
Normal file
@@ -0,0 +1,125 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block subject %}
|
||||
Activate Your Account - {{ site_name }}
|
||||
{% endblock subject %}
|
||||
|
||||
{% block text_body %}
|
||||
Hi{% if user.first_name %} {{ user.first_name }}{% endif %},
|
||||
|
||||
Thank you for registering with {{ site_name }}!
|
||||
|
||||
To activate your account, please visit the following link:
|
||||
|
||||
http://{{ domain }}/{{ url }}
|
||||
|
||||
This activation link will expire in 24 hours for security reasons.
|
||||
|
||||
If you didn't create an account with us, you can safely ignore this email.
|
||||
|
||||
---
|
||||
This is an automated message, please do not reply to this email.
|
||||
© {{ site_name }} - All rights reserved
|
||||
{% endblock text_body %}
|
||||
|
||||
{% block html_body %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 2px solid #4CAF50;
|
||||
}
|
||||
h1 {
|
||||
color: #4CAF50;
|
||||
margin: 0;
|
||||
}
|
||||
.content {
|
||||
margin: 30px 0;
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 12px 30px;
|
||||
background-color: #4CAF50;
|
||||
color: #ffffff !important;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.button:hover {
|
||||
background-color: #45a049;
|
||||
}
|
||||
.link-container {
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #ddd;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
}
|
||||
.code {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
word-break: break-all;
|
||||
font-family: monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Welcome! 🎉</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Hi{% if user.first_name %} {{ user.first_name }}{% endif %},</p>
|
||||
|
||||
<p>Thank you for registering with {{ site_name }}! To complete your registration and activate your account, please click the button below:</p>
|
||||
|
||||
<div class="link-container">
|
||||
<a href="http://{{ domain }}/{{ url }}" class="button">Activate Your Account</a>
|
||||
</div>
|
||||
|
||||
<p>Or copy and paste this link into your browser:</p>
|
||||
<div class="code">
|
||||
http://{{ domain }}/{{ url }}
|
||||
</div>
|
||||
|
||||
<p><strong>Note:</strong> This activation link will expire in 24 hours for security reasons.</p>
|
||||
|
||||
<p>If you didn't create an account with us, you can safely ignore this email.</p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© {{ site_name }} - All rights reserved</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock html_body %}
|
||||
23
templates/email/activation.txt
Normal file
23
templates/email/activation.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block subject %}
|
||||
Activate Your Account - {{ site_name }}
|
||||
{% endblock subject %}
|
||||
|
||||
{% block text_body %}
|
||||
Hi{% if user.first_name %} {{ user.first_name }}{% endif %},
|
||||
|
||||
Thank you for registering with {{ site_name }}!
|
||||
|
||||
To activate your account, please visit the following link:
|
||||
|
||||
http://{{ domain }}/{{ url }}
|
||||
|
||||
This activation link will expire in 24 hours for security reasons.
|
||||
|
||||
If you didn't create an account with us, you can safely ignore this email.
|
||||
|
||||
---
|
||||
This is an automated message, please do not reply to this email.
|
||||
© {{ site_name }} - All rights reserved
|
||||
{% endblock text_body %}
|
||||
79
templates/email/confirmation.html
Normal file
79
templates/email/confirmation.html
Normal file
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Account Activated</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 2px solid #4CAF50;
|
||||
}
|
||||
h1 {
|
||||
color: #4CAF50;
|
||||
margin: 0;
|
||||
}
|
||||
.content {
|
||||
margin: 30px 0;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #ddd;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
}
|
||||
.success-icon {
|
||||
text-align: center;
|
||||
font-size: 48px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Account Activated! ✅</h1>
|
||||
</div>
|
||||
|
||||
<div class="success-icon">
|
||||
🎉
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Hi{% if user.first_name %} {{ user.first_name }}{% endif %},</p>
|
||||
|
||||
<p>Great news! Your account has been successfully activated.</p>
|
||||
|
||||
<p>You can now log in and start using all features of {{ site_name }}.</p>
|
||||
|
||||
<p>If you have any questions or need assistance, please don't hesitate to contact our support team.</p>
|
||||
|
||||
<p>Welcome aboard!</p>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© {{ site_name }} - All rights reserved</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
16
templates/email/confirmation.txt
Normal file
16
templates/email/confirmation.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Account Activated!
|
||||
|
||||
Hi{% if user.first_name %} {{ user.first_name }}{% endif %},
|
||||
|
||||
Great news! Your account has been successfully activated.
|
||||
|
||||
You can now log in and start using all features of {{ site_name }}.
|
||||
|
||||
If you have any questions or need assistance, please don't hesitate to contact our support team.
|
||||
|
||||
Welcome aboard!
|
||||
|
||||
---
|
||||
This is an automated message, please do not reply to this email.
|
||||
© {{ site_name }} - All rights reserved
|
||||
|
||||
114
templates/email/password_reset.html
Normal file
114
templates/email/password_reset.html
Normal file
@@ -0,0 +1,114 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Password Reset</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.container {
|
||||
background-color: #ffffff;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding-bottom: 20px;
|
||||
border-bottom: 2px solid #FF9800;
|
||||
}
|
||||
h1 {
|
||||
color: #FF9800;
|
||||
margin: 0;
|
||||
}
|
||||
.content {
|
||||
margin: 30px 0;
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
padding: 12px 30px;
|
||||
background-color: #FF9800;
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
margin: 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.button:hover {
|
||||
background-color: #F57C00;
|
||||
}
|
||||
.link-container {
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #ddd;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
}
|
||||
.code {
|
||||
background-color: #f5f5f5;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
word-break: break-all;
|
||||
font-family: monospace;
|
||||
}
|
||||
.warning {
|
||||
background-color: #fff3cd;
|
||||
border-left: 4px solid #FF9800;
|
||||
padding: 12px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Password Reset 🔐</h1>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<p>Hi{% if user.first_name %} {{ user.first_name }}{% endif %},</p>
|
||||
|
||||
<p>We received a request to reset your password. Click the button below to choose a new password:</p>
|
||||
|
||||
<div class="link-container">
|
||||
<a href="{{ protocol }}://{{ domain }}/{{ url }}" class="button">Reset Password</a>
|
||||
</div>
|
||||
|
||||
<p>Or copy and paste this link into your browser:</p>
|
||||
<div class="code">
|
||||
{{ protocol }}://{{ domain }}/{{ url }}
|
||||
</div>
|
||||
|
||||
<div class="warning">
|
||||
<strong>⚠️ Security Note:</strong> This password reset link will expire in 1 hour. If you didn't request a password reset, please ignore this email and your password will remain unchanged.
|
||||
</div>
|
||||
|
||||
<p>For security reasons, we recommend that you:</p>
|
||||
<ul>
|
||||
<li>Choose a strong, unique password</li>
|
||||
<li>Don't reuse passwords from other sites</li>
|
||||
<li>Enable two-factor authentication if available</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© {{ site_name }} - All rights reserved</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
21
templates/email/password_reset.txt
Normal file
21
templates/email/password_reset.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
Password Reset Request
|
||||
|
||||
Hi{% if user.first_name %} {{ user.first_name }}{% endif %},
|
||||
|
||||
We received a request to reset your password. To choose a new password, please visit the following link:
|
||||
|
||||
{{ protocol }}://{{ domain }}/{{ url }}
|
||||
|
||||
This password reset link will expire in 1 hour for security reasons.
|
||||
|
||||
If you didn't request a password reset, please ignore this email and your password will remain unchanged.
|
||||
|
||||
For security reasons, we recommend that you:
|
||||
- Choose a strong, unique password
|
||||
- Don't reuse passwords from other sites
|
||||
- Enable two-factor authentication if available
|
||||
|
||||
---
|
||||
This is an automated message, please do not reply to this email.
|
||||
© {{ site_name }} - All rights reserved
|
||||
|
||||
Reference in New Issue
Block a user