实现邮件发送:简单邮件、附件邮件、嵌入资源的邮件、模板邮件

This commit is contained in:
程序猿DD
2016-06-14 17:56:26 +08:00
parent 31fd1354b2
commit 9689c6bbd6
6 changed files with 179 additions and 0 deletions
@@ -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>