Package org.nuxeo.mail
Class MimeMessageHelper
java.lang.Object
org.nuxeo.mail.MimeMessageHelper
Helper to convert
MailMessage
s to MimeMessage
.- Since:
- 2023.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static javax.mail.internet.MimeMultipart
assembleMultiPart
(javax.mail.internet.MimeBodyPart body, List<Blob> attachments) static javax.mail.internet.MimeMessage
static javax.mail.internet.MimeMessage
composeMimeMessage
(MailMessage msg, javax.mail.Session session) protected static javax.mail.internet.MimeMessage
fillDetails
(MailMessage msg, javax.mail.internet.MimeMessage mimeMsg) protected static javax.mail.Address[]
toAddresses
(List<String> list)
-
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
-