use of org.broadleafcommerce.common.email.service.info.EmailInfo in project BroadleafCommerce by BroadleafCommerce.
the class ScanConfig method blEmailInfo.
@Bean
public EmailInfo blEmailInfo() {
EmailInfo info = new EmailInfo();
info.setFromAddress("client");
return info;
}
use of org.broadleafcommerce.common.email.service.info.EmailInfo in project BroadleafCommerce by BroadleafCommerce.
the class AdminSpringBootTestConfiguration method blEmailInfo.
@Bean
public EmailInfo blEmailInfo() {
EmailInfo info = new EmailInfo();
info.setFromAddress("support@mycompany.com");
info.setSendAsyncPriority("2");
info.setSendEmailReliableAsync("false");
return info;
}
use of org.broadleafcommerce.common.email.service.info.EmailInfo in project BroadleafCommerce by BroadleafCommerce.
the class AdminSpringBootTestConfiguration method blRegistrationEmailInfo.
@Bean
public EmailInfo blRegistrationEmailInfo() {
EmailInfo info = blEmailInfo();
info.setSubject("You have successfully registered!");
info.setEmailTemplate("register-email");
return info;
}
use of org.broadleafcommerce.common.email.service.info.EmailInfo in project BroadleafCommerce by BroadleafCommerce.
the class AdminSpringBootTestConfiguration method blReturnConfirmationEmailInfo.
@Bean
public EmailInfo blReturnConfirmationEmailInfo() {
EmailInfo info = blEmailInfo();
info.setSubject("Your return with The Heat Clinic");
info.setEmailTemplate("returnConfirmation-email");
return info;
}
use of org.broadleafcommerce.common.email.service.info.EmailInfo in project BroadleafCommerce by BroadleafCommerce.
the class EmailTest method testSynchronousEmail.
@Test
public void testSynchronousEmail() throws Exception {
EmailInfo info = new EmailInfo();
info.setFromAddress("me@test.com");
info.setSubject("test");
info.setEmailTemplate("org/broadleafcommerce/common/email/service/template/default.vm");
info.setSendEmailReliableAsync("false");
emailService.sendTemplateEmail("to@localhost", info, null);
}
Aggregations