use of org.finos.waltz.service.email.DummyJavaMailSender in project waltz by khartec.
the class DIConfiguration method mailSender.
@Bean
public JavaMailSender mailSender() {
if (smtpHost == null) {
return new DummyJavaMailSender();
} else {
JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
mailSender.setHost(smtpHost);
mailSender.setPort(smtpPort);
return mailSender;
}
}
Aggregations