Package io.jmix.email

Interface EmailSender

All Known Implementing Classes:
EmailSenderImpl

public interface EmailSender
Adapter to javax.mail email sending API.
Should not be used from application code, use Emailer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendEmail(SendingMessage sendingMessage)
    Sends email with help of JavaMailSender.
  • Method Details

    • sendEmail

      void sendEmail(SendingMessage sendingMessage) throws jakarta.mail.MessagingException
      Sends email with help of JavaMailSender. Message body and attachments' content must be loaded from file storage.
      Use Emailer instead if you need email to be delivered reliably and stored to email history.
      Throws:
      jakarta.mail.MessagingException - if delivery fails