Class EmailBuilder

java.lang.Object
org.summerboot.jexpress.integration.smtp.EmailBuilder

@Deprecated public class EmailBuilder extends Object
Deprecated.
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Details

  • Constructor Details

  • Method Details

    • config

      public static void config(File cfgFile) throws IOException, GeneralSecurityException
      Deprecated.
      Throws:
      IOException
      GeneralSecurityException
    • configInfo

      public static String configInfo()
      Deprecated.
    • addAttachment

      public void addAttachment(EmailBuilder.EmailAttachment att)
      Deprecated.
    • removeAttachments

      public void removeAttachments()
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getFrom

      public String getFrom()
      Deprecated.
    • setFrom

      public void setFrom(String title, String email)
      Deprecated.
    • setFrom

      public void setFrom(String email)
      Deprecated.
    • getToList

      public String[] getToList()
      Deprecated.
    • setToList

      public void setToList(String... toList)
      Deprecated.
    • getCcList

      public String[] getCcList()
      Deprecated.
    • setCcList

      public void setCcList(String... ccList)
      Deprecated.
    • getBccList

      public String[] getBccList()
      Deprecated.
    • setBccList

      public void setBccList(String... bccList)
      Deprecated.
    • getSubject

      public String getSubject()
      Deprecated.
    • setSubject

      public void setSubject(String subject)
      Deprecated.
    • getBody

      public String getBody()
      Deprecated.
    • setBody

      public void setBody(String body)
      Deprecated.
    • getFormat

      public EmailBuilder.Format getFormat()
      Deprecated.
    • setFormat

      public void setFormat(EmailBuilder.Format format)
      Deprecated.
    • getAttachments

      public List<EmailBuilder.EmailAttachment> getAttachments()
      Deprecated.
    • buildMimeMessage

      public jakarta.mail.internet.MimeMessage buildMimeMessage() throws jakarta.mail.MessagingException
      Deprecated.
      Throws:
      jakarta.mail.MessagingException
    • buildMimeMessage

      public jakarta.mail.internet.MimeMessage buildMimeMessage(jakarta.mail.Session emailSession) throws jakarta.mail.MessagingException
      Deprecated.
      Throws:
      jakarta.mail.MessagingException