@Configuration @ConditionalOnClass(value={javax.mail.internet.MimeMessage.class,javax.activation.MimeType.class}) @ConditionalOnMissingBean(value=org.springframework.mail.MailSender.class) @Conditional(value=org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration.MailSenderCondition.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,
org.springframework.beans.factory.ObjectProvider<Session> session) |
Modifier and Type | Method and Description |
---|---|
org.springframework.mail.javamail.JavaMailSenderImpl |
mailSender() |
public MailSenderAutoConfiguration(MailProperties properties, org.springframework.beans.factory.ObjectProvider<Session> session)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.