Class SMTPMailSender

java.lang.Object
org.nuxeo.mail.SMTPMailSender
All Implemented Interfaces:
MailSender
Direct Known Subclasses:
JndiSMTPMailSender

public class SMTPMailSender extends Object implements MailSender
Default implementation of MailSender building MimeMessages and sending via SMTP protocol.
Since:
2023.4
  • Field Details

    • session

      protected final javax.mail.Session session
  • Constructor Details

    • SMTPMailSender

      public SMTPMailSender(MailSenderDescriptor descriptor)
    • SMTPMailSender

      protected SMTPMailSender(javax.mail.Session session)
  • Method Details

    • sendMail

      public void sendMail(MailMessage message)
      Specified by:
      sendMail in interface MailSender
    • buildMimeMessage

      protected javax.mail.internet.MimeMessage buildMimeMessage(MailMessage message) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • addFroms

      protected MailMessage addFroms(MailMessage message)