实现邮件发送:简单邮件、附件邮件、嵌入资源的邮件、模板邮件
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
spring.mail.host=smtp.qq.com
|
||||
spring.mail.username=username@qq.com
|
||||
spring.mail.password=password
|
||||
spring.mail.properties.mail.smtp.auth=true
|
||||
spring.mail.properties.mail.smtp.starttls.enable=true
|
||||
spring.mail.properties.mail.smtp.starttls.required=true
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<h3>你好, ${username}, 这是一封模板邮件!</h3>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user