邮箱-验证码-主题上加上验证码

This commit is contained in:
khalil
2025-03-18 15:38:03 +08:00
parent be34c61099
commit 85d995b167

View File

@@ -21,7 +21,8 @@ public class AwsSecService {
String logoUrl = emailConfig.getLogoUrl();
String sender = emailConfig.getSender();
String subject = String.format("%s verification code", appName);
String title = String.format("%s verification code", appName);
String subject = String.format("%s is %s", title, code);
// The HTML body of the email.
String bodyHTML =
@@ -36,7 +37,7 @@ public class AwsSecService {
" <p style=\"text-align:center;margin:10px 0\">Expires in: <strong style=\"color:#e74c3c\">{3} minutes</strong></p>\n" +
"</body>\n" +
"</html>",
logoUrl, subject, code, expire);
logoUrl, title, code, expire);
Destination destination = Destination.builder()
.toAddresses(emailAddress)