Interface EmailService
- All Known Implementing Classes:
DefaultEmailService
public interface EmailService
-
Method Summary
-
Method Details
-
send
Send an email message.The send date is set or overridden if any is present.
- Parameters:
mimeEmail- an email to be send
-
send
jakarta.mail.internet.MimeMessage send(Email mimeEmail, String template, Map<String, Object> modelObject, InlinePicture... inlinePictures) throws CannotSendEmailExceptionSend an email message.The body is ignored if present. The send date is set or overridden if any is present.
- Parameters:
mimeEmail- an email to be sendtemplate- the reference to the template filemodelObject- the model object to be used for the template engine, it may be nullinlinePictures- list of pictures to be rendered inline in the template- Throws:
CannotSendEmailException
-