Interface EmailService

All Known Implementing Classes:
DefaultEmailService

public interface EmailService
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.mail.internet.MimeMessage
    send(Email mimeEmail)
    Send an email message.
    jakarta.mail.internet.MimeMessage
    send(Email mimeEmail, String template, Map<String,Object> modelObject, InlinePicture... inlinePictures)
    Send an email message.
  • Method Details

    • send

      jakarta.mail.internet.MimeMessage send(Email mimeEmail)
      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 CannotSendEmailException
      Send 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 send
      template - the reference to the template file
      modelObject - the model object to be used for the template engine, it may be null
      inlinePictures - list of pictures to be rendered inline in the template
      Throws:
      CannotSendEmailException