protected JavaMailSenderImpl createMailSender(final EmailMessageRequest emailRequest) {
        val sender = applyProperties(new JavaMailSenderImpl(), emailRequest);
        return StringUtils.isNotBlank(sender.getHost()) ? sender : null;
    }
This is {@link DefaultEmailSender}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-notifications-api/src/main/java/org/apereo/cas/notifications/mail/DefaultEmailSender.java