feat: 添加邮件自定义模板
This commit is contained in:
@@ -169,7 +169,8 @@ services:
|
||||
- ./wfc/modules/system/jar/wfc-modules-system.jar:/opt/wfc/app.jar
|
||||
- ./conf/application-common.yml:/opt/wfc/conf/application-common.yml
|
||||
- ./conf/i18n/:/opt/wfc/conf/i18n
|
||||
- ./wfc/modules/system/conf/application.yml:/opt/wfc/conf/application.yml
|
||||
- ./wfc/modules/system/conf/application.yml:/opt/wfc/conf/application.yml
|
||||
- ./conf/templates/system:/opt/wfc/templates
|
||||
depends_on:
|
||||
wfc-redis:
|
||||
condition: service_healthy
|
||||
@@ -207,6 +208,7 @@ services:
|
||||
- ./conf/application-common.yml:/opt/wfc/conf/application-common.yml
|
||||
- ./conf/i18n/:/opt/wfc/conf/i18n
|
||||
- ./wfc/modules/user/conf/application.yml:/opt/wfc/conf/application.yml
|
||||
- ./conf/templates/user:/opt/wfc/templates
|
||||
depends_on:
|
||||
wfc-redis:
|
||||
condition: service_healthy
|
||||
|
||||
72
build/docker/conf/templates/default/mail.html
Normal file
72
build/docker/conf/templates/default/mail.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Verification Code</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.code-box {
|
||||
background-color: #f8f8f8;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.verification-code {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 5px;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.footer {
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h2>WANFI Verification Code</h2>
|
||||
</div>
|
||||
|
||||
<p>Dear User,</p>
|
||||
|
||||
<p>Thank you for using our service. Your verification code is:</p>
|
||||
|
||||
<div class="code-box">
|
||||
<div class="verification-code"> <span th:text="${verificationCode}"></span> </div>
|
||||
</div>
|
||||
|
||||
<p>This code will expire in <span th:text="${expirationTime}">10</span> minutes. Please do not share this code with anyone.</p>
|
||||
|
||||
<p>If you didn't request this code, please ignore this email.</p>
|
||||
|
||||
<p>Best regards,<br>
|
||||
Your Company Name</p>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© 2024 Your Company Name. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
72
build/docker/conf/templates/system/mail.html
Normal file
72
build/docker/conf/templates/system/mail.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Verification Code</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.code-box {
|
||||
background-color: #f8f8f8;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.verification-code {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 5px;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.footer {
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h2>WANFI Verification Code</h2>
|
||||
</div>
|
||||
|
||||
<p>Dear User,</p>
|
||||
|
||||
<p>Thank you for using our service. Your verification code is:</p>
|
||||
|
||||
<div class="code-box">
|
||||
<div class="verification-code"> <span th:text="${verificationCode}"></span> </div>
|
||||
</div>
|
||||
|
||||
<p>This code will expire in <span th:text="${expirationTime}">10</span> minutes. Please do not share this code with anyone.</p>
|
||||
|
||||
<p>If you didn't request this code, please ignore this email.</p>
|
||||
|
||||
<p>Best regards,<br>
|
||||
Your Company Name</p>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© 2024 Your Company Name. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
72
build/docker/conf/templates/user/mail.html
Normal file
72
build/docker/conf/templates/user/mail.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Verification Code</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.code-box {
|
||||
background-color: #f8f8f8;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.verification-code {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 5px;
|
||||
color: #2b2b2b;
|
||||
}
|
||||
.footer {
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h2>WANFI Verification Code</h2>
|
||||
</div>
|
||||
|
||||
<p>Dear User,</p>
|
||||
|
||||
<p>Thank you for using our service. Your verification code is:</p>
|
||||
|
||||
<div class="code-box">
|
||||
<div class="verification-code"> <span th:text="${verificationCode}"></span> </div>
|
||||
</div>
|
||||
|
||||
<p>This code will expire in <span th:text="${expirationTime}">10</span> minutes. Please do not share this code with anyone.</p>
|
||||
|
||||
<p>If you didn't request this code, please ignore this email.</p>
|
||||
|
||||
<p>Best regards,<br>
|
||||
Your Company Name</p>
|
||||
|
||||
<div class="footer">
|
||||
<p>This is an automated message, please do not reply to this email.</p>
|
||||
<p>© 2024 Your Company Name. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user