Search in sources :

Example 1 with NullEmailInfo

use of org.broadleafcommerce.common.email.service.info.NullEmailInfo in project BroadleafCommerce by BroadleafCommerce.

the class EmailServiceImpl method sendTemplateEmail.

public boolean sendTemplateEmail(String emailAddress, EmailInfo emailInfo, Map<String, Object> props) {
    if (!(emailInfo instanceof NullEmailInfo)) {
        EmailTarget emailTarget = emailReportingDao.createTarget();
        emailTarget.setEmailAddress(emailAddress);
        return sendTemplateEmail(emailTarget, emailInfo, props);
    } else {
        return true;
    }
}
Also used : NullEmailInfo(org.broadleafcommerce.common.email.service.info.NullEmailInfo) EmailTarget(org.broadleafcommerce.common.email.domain.EmailTarget)

Aggregations

EmailTarget (org.broadleafcommerce.common.email.domain.EmailTarget)1 NullEmailInfo (org.broadleafcommerce.common.email.service.info.NullEmailInfo)1