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