Skip to content

Commit

Permalink
fix: update email template
Browse files Browse the repository at this point in the history
  • Loading branch information
douxc committed Dec 26, 2024
1 parent 3c2d401 commit e127283
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}
.container {
width: 600px;
height: 360px;
margin: 40px auto;
padding: 36px 48px;
background-color: #fcfcfd;
Expand Down Expand Up @@ -63,12 +62,22 @@
<!-- Optional: Add a logo or a header image here -->
<img src="https://cloud.dify.ai/logo/logo-site.png" alt="Dify Logo" />
</div>
<p class="title">Delete your Dify account</p>
<p class="description">Copy and paste this code, this code will only be valid for the next 5 minutes.</p>
<div class="code-content">
<span class="code">{{code}}</span>
</div>
<p class="tips">If you didn't request, don't worry. You can safely ignore this email.</p>
<p class="title">Dify.AI Account Deletion and Verification</p>
<p class="description">
<p>Hi,</p>
<p>We received a request to delete your Dify account. To ensure the security of your account and confirm this action, please use the verification code below:</p>
<div class="code-content">
<span class="code">{{code}}</span>
</div>
<p>To complete the account deletion process:</p>
<p>1. Return to the account deletion page on our website</p>
<p>2. Enter the verification code above</p>
<p>3. Click "Confirm Deletion"</p>
<p>Please note:</p>
<p>- This code is valid for 5 minutes</p>
<p>- As the Owner of any Workspaces, your workspaces will be scheduled in a queue for permanent deletion.</p>
<p>- All your user data will be queued for permanent deletion.</p>
</p>
</div>
</body>
</html>
74 changes: 0 additions & 74 deletions api/templates/delete_account_code_email_template_zh-CN.html

This file was deleted.

165 changes: 92 additions & 73 deletions api/templates/delete_account_success_template_en-US.html
Original file line number Diff line number Diff line change
@@ -1,76 +1,95 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 16pt;
color: #101828;
background-color: #e9ebf0;
margin: 0;
padding: 0;
}
.container {
width: 600px;
height: 360px;
margin: 40px auto;
padding: 36px 48px;
background-color: #fcfcfd;
border-radius: 16px;
border: 1px solid #ffffff;
box-shadow: 0 2px 4px -2px rgba(9, 9, 11, 0.08);
}
.header {
margin-bottom: 24px;
}
.header img {
max-width: 100px;
height: auto;
}
.title {
font-weight: 600;
font-size: 24px;
line-height: 28.8px;
}
.description {
color: #354052;
font-weight: 400;
line-height: 20px;
font-size: 14px;
}
.code-content {
padding: 16px 32px;
text-align: center;
border-radius: 16px;
background-color: #f2f4f7;
margin: 16px auto;
}
.code {
line-height: 36px;
font-weight: 700;
font-size: 30px;
}
.tips {
line-height: 16px;
color: #676f83;
font-size: 13px;
}
.email{
color: #354052;
font-weight: 600;
line-height: 20px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<!-- Optional: Add a logo or a header image here -->
<img src="https://cloud.dify.ai/logo/logo-site.png" alt="Dify Logo" />
</div>
<p class="title">Your account has finished deleting</p>
<p class="description">You recently deleted your <span class="email">{{email}}</span> Dify account. It's done processing and is now deleted. As a reminder, you no longer have access to all the workspaces you used to be in with this account. </p>

<head>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 16pt;
color: #101828;
background-color: #e9ebf0;
margin: 0;
padding: 0;
}

.container {
width: 600px;
margin: 40px auto;
padding: 36px 48px;
background-color: #fcfcfd;
border-radius: 16px;
border: 1px solid #ffffff;
box-shadow: 0 2px 4px -2px rgba(9, 9, 11, 0.08);
}

.header {
margin-bottom: 24px;
}

.header img {
max-width: 100px;
height: auto;
}

.title {
font-weight: 600;
font-size: 24px;
line-height: 28.8px;
}

.description {
color: #354052;
font-weight: 400;
line-height: 20px;
font-size: 14px;
}

.code-content {
padding: 16px 32px;
text-align: center;
border-radius: 16px;
background-color: #f2f4f7;
margin: 16px auto;
}

.code {
line-height: 36px;
font-weight: 700;
font-size: 30px;
}

.tips {
line-height: 16px;
color: #676f83;
font-size: 13px;
}

.email {
color: #354052;
font-weight: 600;
line-height: 20px;
font-size: 14px;
}
</style>
</head>

<body>
<div class="container">
<div class="header">
<!-- Optional: Add a logo or a header image here -->
<img src="https://cloud.dify.ai/logo/logo-site.png" alt="Dify Logo" />
</div>
</body>
</html>
<p class="title">Your Dify.AI Account Has Been Successfully Deleted</p>
<p>Hi,</p>
<p>We're writing to confirm that your Dify.AI account has been successfully deleted as per your request. Your
account is no longer accessible, and you can't log in using your previous credentials. If you decide to use
Dify.AI services in the future, you'll need to create a new account after 30 days. We appreciate the time you
spent with Dify.AI and are sorry to see you go. If you have any questions or concerns about the deletion process,
please don't hesitate to reach out to our support team.</p>
<p>Thank you for being a part of the Dify.AI community.</p>
<p>Best regards,</p>
<p>Dify.AI Team</p>
</div>
</body>

</html>
77 changes: 0 additions & 77 deletions api/templates/delete_account_success_template_zh-CN.html

This file was deleted.

0 comments on commit e127283

Please sign in to comment.