@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(MailProperties properties,
ObjectProvider<Session> sessionProvider) |
Modifier and Type | Method and Description |
---|---|
JavaMailSenderImpl |
mailSender() |
public MailSenderAutoConfiguration(MailProperties properties, ObjectProvider<Session> sessionProvider)
@Bean public JavaMailSenderImpl mailSender()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.