邮箱-验证码-主题上加上验证码
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user