@Configuration @ConditionalOnClass(value={javax.mail.internet.MimeMessage.class,javax.activation.MimeType.class}) @ConditionalOnMissingBean(value=org.springframework.mail.MailSender.class) @EnableConfigurationProperties(value=MailProperties.class) @Import(value=org.springframework.boot.autoconfigure.mail.JndiSessionConfiguration.class) public class MailSenderAutoConfiguration extends Object
Auto configuration
for email support.Constructor and Description |
---|
MailSenderAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
JavaMailSenderImpl |
mailSender() |
@Bean public JavaMailSenderImpl mailSender()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.