From f8424947c704af28e467a7eeb5e440ba57cd9f9e Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Fri, 27 Feb 2015 20:54:05 +0800 Subject: [PATCH] Update 31. Sending email.md --- IV. Spring Boot features/31. Sending email.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IV. Spring Boot features/31. Sending email.md b/IV. Spring Boot features/31. Sending email.md index e69de29..70d450b 100644 --- a/IV. Spring Boot features/31. Sending email.md +++ b/IV. Spring Boot features/31. Sending email.md @@ -0,0 +1,6 @@ +### 31. 发送邮件 + +Spring框架使用JavaMailSender接口为发送邮件提供了一个简单的抽象,并且Spring Boot也为它提供了自动配置和一个starter模块。 +具体查看[JavaMailSender参考文档](http://docs.spring.io/spring/docs/4.1.4.RELEASE/spring-framework-reference/htmlsingle/#mail)。 + +如果spring.mail.host和相关的库(通过spring-boot-starter-mail定义)都存在,一个默认的JavaMailSender将被创建。该sender可以通过spring.mail命名空间下的配置项进一步自定义,具体参考[MailProperties](http://github.com/spring-projects/spring-boot/tree/master/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mail/MailProperties.java)。