Class MimeMessageHelper

java.lang.Object
org.nuxeo.mail.MimeMessageHelper

public class MimeMessageHelper extends Object
Helper to convert MailMessages to MimeMessage.
Since:
2023.4
  • Constructor Details

    • MimeMessageHelper

      public MimeMessageHelper()
  • Method Details

    • composeMimeMessage

      public static javax.mail.internet.MimeMessage composeMimeMessage(MailMessage msg) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • composeMimeMessage

      public static javax.mail.internet.MimeMessage composeMimeMessage(MailMessage msg, javax.mail.Session session) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • assembleMultiPart

      protected static javax.mail.internet.MimeMultipart assembleMultiPart(javax.mail.internet.MimeBodyPart body, List<Blob> attachments) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • fillDetails

      protected static javax.mail.internet.MimeMessage fillDetails(MailMessage msg, javax.mail.internet.MimeMessage mimeMsg) throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • toAddresses

      protected static javax.mail.Address[] toAddresses(List<String> list)