Search in sources :

Example 1 with DummyJavaMailSender

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;
    }
}
Also used : JavaMailSenderImpl(org.springframework.mail.javamail.JavaMailSenderImpl) DummyJavaMailSender(org.finos.waltz.service.email.DummyJavaMailSender)

Aggregations

DummyJavaMailSender (org.finos.waltz.service.email.DummyJavaMailSender)1 JavaMailSenderImpl (org.springframework.mail.javamail.JavaMailSenderImpl)1