public final class EmailConverter extends Object
Email
instances to other formats (MimeMessage, EML etc.) and vice versa.
If you use the Outlook parsing API, make sure you load the following dependency: org.simplejavamail::outlook-message-parserModifier and Type | Method and Description |
---|---|
static String |
emailToEML(@NotNull org.simplejavamail.api.email.Email email)
Delegates to
emailToMimeMessage(Email) and passes the result to mimeMessageToEML(MimeMessage) . |
static jakarta.mail.internet.MimeMessage |
emailToMimeMessage(@NotNull org.simplejavamail.api.email.Email email)
Delegates to
emailToMimeMessage(Email, Session) , using a new empty Session instance. |
static jakarta.mail.internet.MimeMessage |
emailToMimeMessage(@NotNull org.simplejavamail.api.email.Email email,
@NotNull jakarta.mail.Session session)
Delegates to
MimeMessageProducerHelper.produceMimeMessage(Email, EmailGovernance, Session) with empty S/MIME signing store. |
static jakarta.mail.internet.MimeMessage |
emailToMimeMessage(@NotNull org.simplejavamail.api.email.Email email,
@NotNull jakarta.mail.Session session,
@NotNull org.simplejavamail.api.mailer.config.Pkcs12Config defaultSmimeSigningStore)
Refer to
MimeMessageProducerHelper.produceMimeMessage(Email, EmailGovernance, Session) . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull File emlFile)
Delegates to
emlToEmail(File, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull File emlFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToEmailBuilder(File, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull InputStream emlInputStream)
Delegates to
emlToEmail(InputStream, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull InputStream emlInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToEmailBuilder(InputStream, Pkcs12Config) with the full string value read from the given InputStream . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull String eml)
Delegates to
emlToEmail(String, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
emlToEmail(@NotNull String eml,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToEmailBuilder(String, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull File emlFile)
Delegates to
emlToEmailBuilder(File, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull File emlFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToMimeMessage(File) and then mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull InputStream emlInputStream)
Delegates to
emlToEmailBuilder(InputStream, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull InputStream emlInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToEmail(String) with the full string value read from the given InputStream . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull String eml)
Delegates to
emlToEmailBuilder(String, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
emlToEmailBuilder(@NotNull String eml,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
emlToMimeMessage(String, Session) using a dummy Session instance and passes the result to mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config) . |
static @NotNull jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull File emlFile)
Delegates to
emlToMimeMessage(File, Session) , using createDummySession() . |
static jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull File emlFile,
@NotNull jakarta.mail.Session session)
Delegates to
emlToMimeMessage(InputStream, Session) . |
static @NotNull jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull InputStream inputStream)
Delegates to
emlToMimeMessage(InputStream, Session) using createDummySession() . |
static @NotNull jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull InputStream inputStream,
@NotNull jakarta.mail.Session session)
Relies on JavaMail's native parser of EML data,
MimeMessage.MimeMessage(Session, InputStream) . |
static jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull String eml)
Delegates to
emlToMimeMessage(String, Session) with an empty Session instance. |
static jakarta.mail.internet.MimeMessage |
emlToMimeMessage(@NotNull String eml,
@NotNull jakarta.mail.Session session)
Relies on JavaMail's native parser of EML data,
MimeMessage.MimeMessage(Session, InputStream) . |
static @NotNull org.simplejavamail.api.email.Email |
mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage)
Delegates to
mimeMessageToEmail(MimeMessage, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config,
boolean fetchAttachmentData)
|
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
mimeMessageToEmailBuilder(@NotNull jakarta.mail.internet.MimeMessage mimeMessage)
Delegates to
mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
mimeMessageToEmailBuilder(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
|
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
mimeMessageToEmailBuilder(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config,
boolean fetchAttachmentData) |
static String |
mimeMessageToEML(@NotNull jakarta.mail.internet.MimeMessage mimeMessage) |
static byte[] |
mimeMessageToEMLByteArray(@NotNull jakarta.mail.internet.MimeMessage mimeMessage) |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull File msgFile)
Delegates to
outlookMsgToEmailBuilder(File) and then builds and returns the email. |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull File msgFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
outlookMsgToEmailBuilder(File, Pkcs12Config) and then builds and returns the email. |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull InputStream msgInputStream)
Delegates to
outlookMsgToEmail(InputStream, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull InputStream msgInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
Delegates to
outlookMsgToEmailBuilder(InputStream, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull String msgData)
Delegates to
outlookMsgToEmail(String, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.Email |
outlookMsgToEmail(@NotNull String msgData,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
outlookMsgToEmailBuilder(@NotNull File msgFile)
Delegates to
outlookMsgToEmailBuilder(File, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder |
outlookMsgToEmailBuilder(@NotNull File msgFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull org.simplejavamail.api.internal.outlooksupport.model.EmailFromOutlookMessage |
outlookMsgToEmailBuilder(@NotNull InputStream msgInputStream)
Delegates to
outlookMsgToEmailBuilder(InputStream, Pkcs12Config) . |
static @NotNull org.simplejavamail.api.internal.outlooksupport.model.EmailFromOutlookMessage |
outlookMsgToEmailBuilder(@NotNull InputStream msgInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull String |
outlookMsgToEML(@NotNull File outlookMsgFile)
Delegates to
outlookMsgToEML(File, Pkcs12Config) . |
static @NotNull String |
outlookMsgToEML(@NotNull File outlookMsgFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull String |
outlookMsgToEML(@NotNull InputStream outlookMsgInputStream)
Delegates to
outlookMsgToEML(InputStream, Pkcs12Config) . |
static @NotNull String |
outlookMsgToEML(@NotNull InputStream outlookMsgInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull String |
outlookMsgToEML(@NotNull String msgFile)
Delegates to
outlookMsgToEML(String, Pkcs12Config) . |
static @NotNull String |
outlookMsgToEML(@NotNull String msgData,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull File outlookMsgFile)
Delegates to
outlookMsgToMimeMessage(File, Pkcs12Config) . |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull File outlookMsgFile,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull InputStream outlookMsgInputStream)
Delegates to
outlookMsgToMimeMessage(InputStream, Pkcs12Config) . |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull InputStream outlookMsgInputStream,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull String msgFile)
Delegates to
outlookMsgToMimeMessage(String, Pkcs12Config) . |
static @NotNull jakarta.mail.internet.MimeMessage |
outlookMsgToMimeMessage(@NotNull String msgData,
@Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config) |
@NotNull public static @NotNull org.simplejavamail.api.email.Email mimeMessageToEmail(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage)
mimeMessageToEmail(MimeMessage, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email mimeMessageToEmail(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email mimeMessageToEmail(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config, boolean fetchAttachmentData)
@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder mimeMessageToEmailBuilder(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage)
mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder mimeMessageToEmailBuilder(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder mimeMessageToEmailBuilder(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config, boolean fetchAttachmentData)
mimeMessage
- The MimeMessage from which to create the Email
.pkcs12Config
- Private key store for decrypting S/MIME encrypted attachments
(only needed when the message is encrypted rather than just signed).fetchAttachmentData
- When false only the names of the attachments are retrieved but no data@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull String msgData)
outlookMsgToEmail(String, Pkcs12Config)
.msgData
- The content of an Outlook (.msg) message from which to create the Email
.@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull String msgData, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
msgData
- The content of an Outlook (.msg) message from which to create the Email
.pkcs12Config
- Private key store for decrypting S/MIME encrypted attachments
(only needed when the message is encrypted rather than just signed).@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull File msgFile)
outlookMsgToEmailBuilder(File)
and then builds and returns the email.msgFile
- The content of an Outlook (.msg) message from which to create the Email
.@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull File msgFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmailBuilder(File, Pkcs12Config)
and then builds and returns the email.msgFile
- The content of an Outlook (.msg) message from which to create the Email
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder outlookMsgToEmailBuilder(@NotNull @NotNull File msgFile)
outlookMsgToEmailBuilder(File, Pkcs12Config)
.msgFile
- The content of an Outlook (.msg) message from which to create the Email
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder outlookMsgToEmailBuilder(@NotNull @NotNull File msgFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
msgFile
- The content of an Outlook (.msg) message from which to create the Email
.pkcs12Config
- Private key store for decrypting S/MIME encrypted attachments
(only needed when the message is encrypted rather than just signed).@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull InputStream msgInputStream)
outlookMsgToEmail(InputStream, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email outlookMsgToEmail(@NotNull @NotNull InputStream msgInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmailBuilder(InputStream, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.internal.outlooksupport.model.EmailFromOutlookMessage outlookMsgToEmailBuilder(@NotNull @NotNull InputStream msgInputStream)
outlookMsgToEmailBuilder(InputStream, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.internal.outlooksupport.model.EmailFromOutlookMessage outlookMsgToEmailBuilder(@NotNull @NotNull InputStream msgInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
msgInputStream
- The content of an Outlook (.msg) message from which to create the Email
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull InputStream emlInputStream)
emlToEmail(InputStream, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull InputStream emlInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToEmailBuilder(InputStream, Pkcs12Config)
with the full string value read from the given InputStream
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull String eml)
emlToEmail(String, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull String eml, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToEmailBuilder(String, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull File emlFile)
emlToEmail(File, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.Email emlToEmail(@NotNull @NotNull File emlFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToEmailBuilder(File, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull File emlFile)
emlToEmailBuilder(File, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull File emlFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToMimeMessage(File)
and then mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull InputStream emlInputStream)
emlToEmailBuilder(InputStream, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull InputStream emlInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToEmail(String)
with the full string value read from the given InputStream
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull String eml)
emlToEmailBuilder(String, Pkcs12Config)
.@NotNull public static @NotNull org.simplejavamail.api.email.EmailPopulatingBuilder emlToEmailBuilder(@NotNull @NotNull String eml, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
emlToMimeMessage(String, Session)
using a dummy Session
instance and passes the result to mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull String msgFile)
outlookMsgToMimeMessage(String, Pkcs12Config)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull String msgData, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(String, Pkcs12Config)
and emailToMimeMessage(Email)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull File outlookMsgFile)
outlookMsgToMimeMessage(File, Pkcs12Config)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull File outlookMsgFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(File, Pkcs12Config)
and emailToMimeMessage(Email)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull InputStream outlookMsgInputStream)
outlookMsgToMimeMessage(InputStream, Pkcs12Config)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage outlookMsgToMimeMessage(@NotNull @NotNull InputStream outlookMsgInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(InputStream, Pkcs12Config)
and emailToMimeMessage(Email)
.public static jakarta.mail.internet.MimeMessage emailToMimeMessage(@NotNull @NotNull org.simplejavamail.api.email.Email email)
emailToMimeMessage(Email, Session)
, using a new empty Session
instance.emailToMimeMessage(Email, Session)
public static jakarta.mail.internet.MimeMessage emailToMimeMessage(@NotNull @NotNull org.simplejavamail.api.email.Email email, @NotNull @NotNull jakarta.mail.Session session, @NotNull @NotNull org.simplejavamail.api.mailer.config.Pkcs12Config defaultSmimeSigningStore)
MimeMessageProducerHelper.produceMimeMessage(Email, EmailGovernance, Session)
.public static jakarta.mail.internet.MimeMessage emailToMimeMessage(@NotNull @NotNull org.simplejavamail.api.email.Email email, @NotNull @NotNull jakarta.mail.Session session)
MimeMessageProducerHelper.produceMimeMessage(Email, EmailGovernance, Session)
with empty S/MIME signing store.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull File emlFile)
emlToMimeMessage(File, Session)
, using createDummySession()
.public static jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull File emlFile, @NotNull @NotNull jakarta.mail.Session session)
emlToMimeMessage(InputStream, Session)
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull InputStream inputStream)
emlToMimeMessage(InputStream, Session)
using createDummySession()
.@NotNull public static @NotNull jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull jakarta.mail.Session session)
MimeMessage.MimeMessage(Session, InputStream)
.MimeMessage.MimeMessage(Session, InputStream)
public static jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull String eml)
emlToMimeMessage(String, Session)
with an empty Session
instance.public static jakarta.mail.internet.MimeMessage emlToMimeMessage(@NotNull @NotNull String eml, @NotNull @NotNull jakarta.mail.Session session)
MimeMessage.MimeMessage(Session, InputStream)
.public static byte[] mimeMessageToEMLByteArray(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage)
MimeMessage.writeTo(OutputStream)
which should be in the standard EML format.public static String mimeMessageToEML(@NotNull @NotNull jakarta.mail.internet.MimeMessage mimeMessage)
MimeMessage.writeTo(OutputStream)
with which should be in the standard EML format, to UTF8 string.public static String emailToEML(@NotNull @NotNull org.simplejavamail.api.email.Email email)
emailToMimeMessage(Email)
and passes the result to mimeMessageToEML(MimeMessage)
.emailToMimeMessage(Email, Session)
@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull String msgFile)
outlookMsgToEML(String, Pkcs12Config)
.@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull String msgData, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(String, Pkcs12Config)
and emailToEML(Email)
@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull File outlookMsgFile)
outlookMsgToEML(File, Pkcs12Config)
.@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull File outlookMsgFile, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(File, Pkcs12Config)
and emailToEML(Email)
@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull InputStream outlookMsgInputStream)
outlookMsgToEML(InputStream, Pkcs12Config)
.@NotNull public static @NotNull String outlookMsgToEML(@NotNull @NotNull InputStream outlookMsgInputStream, @Nullable @Nullable org.simplejavamail.api.mailer.config.Pkcs12Config pkcs12Config)
outlookMsgToEmail(InputStream, Pkcs12Config)
and emailToEML(Email)
Copyright © 2009–2023. All rights reserved.