Class SmtpMailMessage

java.lang.Object
ch.tocco.nice2.messaging.mail.impl.SmtpMailMessage
All Implemented Interfaces:
MailMessage

public class SmtpMailMessage extends Object implements MailMessage
  • Constructor Details

    • SmtpMailMessage

      public SmtpMailMessage(jakarta.mail.internet.MimeMessage message)
  • Method Details

    • supportsModifyingSender

      public boolean supportsModifyingSender()
      Specified by:
      supportsModifyingSender in interface MailMessage
    • getFrom

      public jakarta.mail.internet.InternetAddress[] getFrom() throws jakarta.mail.MessagingException
      Specified by:
      getFrom in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • getTo

      public jakarta.mail.internet.InternetAddress[] getTo() throws jakarta.mail.MessagingException
      Specified by:
      getTo in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • getCC

      public jakarta.mail.internet.InternetAddress[] getCC() throws jakarta.mail.MessagingException
      Specified by:
      getCC in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • getBcc

      public jakarta.mail.internet.InternetAddress[] getBcc() throws jakarta.mail.MessagingException
      Specified by:
      getBcc in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • getReplyTo

      public jakarta.mail.internet.InternetAddress[] getReplyTo()
      Specified by:
      getReplyTo in interface MailMessage
    • unwrap

      public Object unwrap()
      Specified by:
      unwrap in interface MailMessage
    • setSender

      public void setSender(@Nullable @Nullable jakarta.mail.Address sender) throws jakarta.mail.MessagingException
      Specified by:
      setSender in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • setFrom

      public void setFrom(jakarta.mail.Address sender) throws jakarta.mail.MessagingException
      Specified by:
      setFrom in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • setReplyTo

      public void setReplyTo(jakarta.mail.Address[] sender) throws jakarta.mail.MessagingException
      Specified by:
      setReplyTo in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • setTo

      public void setTo(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException
      Specified by:
      setTo in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • setCc

      public void setCc(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException
      Specified by:
      setCc in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • setBcc

      public void setBcc(jakarta.mail.Address[] receiver) throws jakarta.mail.MessagingException
      Specified by:
      setBcc in interface MailMessage
      Throws:
      jakarta.mail.MessagingException
    • getHtmlParts

      public MailMessage.HtmlPart[] getHtmlParts() throws IOException, jakarta.mail.MessagingException
      Specified by:
      getHtmlParts in interface MailMessage
      Throws:
      IOException
      jakarta.mail.MessagingException