Package | Description |
---|---|
org.simplejavamail.api.email | |
org.simplejavamail.api.mailer | |
org.simplejavamail.converter | |
org.simplejavamail.email | |
org.simplejavamail.mailer |
Modifier and Type | Method and Description |
---|---|
Email |
EmailPopulatingBuilder.buildEmail()
Validated DKIM values and then delegates to
Email(EmailPopulatingBuilder) with this as argument. |
@Nullable Email |
EmailPopulatingBuilder.getSmimeSignedEmail()
If the Email instance currently being built was the result of a conversion in which the source message was S/MIME
signed / encrypted, this field will contain the decrypted MimeMessage instance.
|
@Nullable Email |
Email.getSmimeSignedEmail() |
Modifier and Type | Method and Description |
---|---|
EmailPopulatingBuilder |
EmailStartingBuilder.copying(@NotNull Email email)
Preconfigures the builder with all the properties from the given email that are non-null.
|
static boolean |
EqualsHelper.equalsEmail(Email email1,
Email email2) |
EmailPopulatingBuilder |
EmailStartingBuilder.forwarding(@NotNull Email email)
Delegates to
EmailStartingBuilder.forwarding(MimeMessage) with the provided Email converted to MimeMessage . |
EmailPopulatingBuilder |
EmailStartingBuilder.replyingTo(@NotNull Email email)
Delegates to
EmailStartingBuilder.replyingTo(MimeMessage, boolean, String) with replyToAll set to false and a default HTML quoting
template. |
EmailPopulatingBuilder |
EmailStartingBuilder.replyingTo(@NotNull Email email,
@NotNull String customQuotingTemplate)
Delegates to
EmailStartingBuilder.replyingTo(MimeMessage, boolean, String) with replyToAll set to false . |
EmailPopulatingBuilder |
EmailStartingBuilder.replyingToAll(@NotNull Email email)
Delegates to
EmailStartingBuilder.replyingTo(MimeMessage, boolean, String) with replyToAll set to true and a default HTML quoting
template. |
EmailPopulatingBuilder |
EmailStartingBuilder.replyingToAll(@NotNull Email email,
@NotNull String customQuotingTemplate)
Delegates to
EmailStartingBuilder.replyingTo(MimeMessage, boolean, String) with replyToAll set to true . |
Modifier and Type | Method and Description |
---|---|
@NotNull CompletableFuture<Void> |
Mailer.sendMail(Email email)
Delegates to
Mailer.sendMail(Email, boolean) , with async = false . |
@NotNull CompletableFuture<Void> |
Mailer.sendMail(Email email,
boolean async)
Processes an
Email instance into a completely configured Message . |
void |
CustomMailer.sendMessage(@NotNull OperationalConfig operationalConfig,
@NotNull jakarta.mail.Session session,
Email email,
@NotNull jakarta.mail.internet.MimeMessage message) |
boolean |
Mailer.validate(Email email)
Validates an
Email instance. |
Modifier and Type | Method and Description |
---|---|
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull File emlFile)
Delegates to
EmailConverter.emlToEmail(File, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull File emlFile,
@Nullable Pkcs12Config pkcs12Config)
Delegates to
EmailConverter.emlToEmailBuilder(File, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull InputStream emlInputStream)
Delegates to
EmailConverter.emlToEmail(InputStream, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull InputStream emlInputStream,
@Nullable Pkcs12Config pkcs12Config)
Delegates to
EmailConverter.emlToEmailBuilder(InputStream, Pkcs12Config) with the full string value read from the given InputStream . |
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull String eml)
Delegates to
EmailConverter.emlToEmail(String, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.emlToEmail(@NotNull String eml,
@Nullable Pkcs12Config pkcs12Config)
Delegates to
EmailConverter.emlToEmailBuilder(String, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage)
|
static @NotNull Email |
EmailConverter.mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable Pkcs12Config pkcs12Config)
|
static @NotNull Email |
EmailConverter.mimeMessageToEmail(@NotNull jakarta.mail.internet.MimeMessage mimeMessage,
@Nullable Pkcs12Config pkcs12Config,
boolean fetchAttachmentData)
|
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull File msgFile)
Delegates to
EmailConverter.outlookMsgToEmailBuilder(File) and then builds and returns the email. |
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull File msgFile,
@Nullable Pkcs12Config pkcs12Config)
Delegates to
EmailConverter.outlookMsgToEmailBuilder(File, Pkcs12Config) and then builds and returns the email. |
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull InputStream msgInputStream)
|
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull InputStream msgInputStream,
@Nullable Pkcs12Config pkcs12Config)
|
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull String msgData)
Delegates to
EmailConverter.outlookMsgToEmail(String, Pkcs12Config) . |
static @NotNull Email |
EmailConverter.outlookMsgToEmail(@NotNull String msgData,
@Nullable Pkcs12Config pkcs12Config) |
Modifier and Type | Method and Description |
---|---|
static String |
EmailConverter.emailToEML(@NotNull Email email)
Delegates to
EmailConverter.emailToMimeMessage(Email) and passes the result to EmailConverter.mimeMessageToEML(MimeMessage) . |
static jakarta.mail.internet.MimeMessage |
EmailConverter.emailToMimeMessage(@NotNull Email email)
Delegates to
EmailConverter.emailToMimeMessage(Email, Session) , using a new empty Session instance. |
static jakarta.mail.internet.MimeMessage |
EmailConverter.emailToMimeMessage(@NotNull Email email,
@NotNull jakarta.mail.Session session)
Delegates to
MimeMessageProducerHelper.produceMimeMessage(Email, Session, Pkcs12Config) with empty S/MIME signing store. |
static jakarta.mail.internet.MimeMessage |
EmailConverter.emailToMimeMessage(@NotNull Email email,
@NotNull jakarta.mail.Session session,
@NotNull Pkcs12Config defaultSmimeSigningStore)
Refer to
MimeMessageProducerHelper.produceMimeMessage(Email, Session, Pkcs12Config) . |
Modifier and Type | Method and Description |
---|---|
static EmailPopulatingBuilder |
EmailBuilder.copying(@NotNull Email email)
Delegates to
EmailStartingBuilder.copying(Email) . |
static EmailPopulatingBuilder |
EmailBuilder.forwarding(@NotNull Email email)
Delegates to
EmailStartingBuilder.forwarding(Email) . |
static EmailPopulatingBuilder |
EmailBuilder.replyingTo(@NotNull Email email)
Delegates to
EmailStartingBuilder.replyingTo(Email) . |
static EmailPopulatingBuilder |
EmailBuilder.replyingTo(@NotNull Email email,
@NotNull String customQuotingTemplate)
Delegates to
EmailStartingBuilder.replyingTo(Email, String) . |
static EmailPopulatingBuilder |
EmailBuilder.replyingToAll(@NotNull Email email)
Delegates to
EmailStartingBuilder.replyingToAll(Email) . |
static EmailPopulatingBuilder |
EmailBuilder.replyingToAll(@NotNull Email email,
@NotNull String customQuotingTemplate)
Delegates to
EmailStartingBuilder.replyingToAll(Email, String) . |
Modifier and Type | Method and Description |
---|---|
static jakarta.mail.internet.MimeMessage |
MailerHelper.signAndOrEncryptMessageWithSmime(@NotNull jakarta.mail.Session session,
@NotNull jakarta.mail.internet.MimeMessage messageToProtect,
@NotNull Email emailContainingSmimeDetails,
@Nullable Pkcs12Config defaultSmimeSigningStore)
Depending on the Email configuration, signs and then encrypts message (both steps optional), using the S/MIME module.
|
static jakarta.mail.internet.MimeMessage |
MailerHelper.signMessageWithDKIM(@NotNull jakarta.mail.internet.MimeMessage messageToSign,
@NotNull Email emailContainingSigningDetails) |
static boolean |
MailerHelper.validate(@NotNull Email email,
@Nullable com.sanctionco.jmail.EmailValidator emailValidator) |
Copyright © 2009–2022. All rights reserved.