#withRecipients(Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipients(Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.BCC
.Email.Email(EmailPopulatingBuilder)
with this
as argument.MailerBuilder.MailerRegularBuilder.buildMailer()
.Mailer
instance with everything configured on this builder instance.Mailer
instance with everything configured on this builder instance.#withRecipients(Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipients(Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.CC
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.CC
.EmailPopulatingBuilder.attachments
to empty.EmailPopulatingBuilder.bounceToRecipient
to empty.EmailPopulatingBuilder.dispositionNotificationTo
to empty.EmailPopulatingBuilder.embeddedImages
to empty.EmailPopulatingBuilder.fromRecipient
to empty.EmailPopulatingBuilder.headers
to empty.EmailPopulatingBuilder.textHTML
to empty.EmailPopulatingBuilder.id
to empty.EmailPopulatingBuilder.text
to empty.EmailPopulatingBuilder.recipients
to empty.EmailPopulatingBuilder.replyToRecipient
to empty.EmailPopulatingBuilder.returnReceiptTo
to empty.EmailPopulatingBuilder.subject
to empty.EmailBuilder.EmailBuilderInstance.copying(MimeMessage)
.EmailBuilder.EmailBuilderInstance.copying(Email)
.EmailBuilder.EmailBuilderInstance.copying(Email)
, by converting the email first.EmailBuilder.EmailBuilderInstance.copying(Email)
, by building the email first.Session
instance.EmailPopulatingBuilder
to this Email instance.EmailPopulatingBuilder
for filling in details.MailerBuilder
, but as an instance (so we can keep track of state).Email
instances to other formats (MimeMessage, EML etc.) and vice versa.Email
instances.EmailConverter.emailToMimeMessage(Email)
and passes the result to EmailConverter.mimeMessageToEML(MimeMessage)
.EmailConverter.emailToMimeMessage(Email, Session)
, using a new empty Session
instance.MimeMessageHelper.produceMimeMessage(Email, Session)
EmailConverter.emlToMimeMessage(String, Session)
using a dummy Session
instance and passes the result to EmailConverter.mimeMessageToEmail(MimeMessage)
;EmailConverter.emlToMimeMessage(String, Session)
with an empty Session
instance.MimeMessage.MimeMessage(Session, InputStream)
.EmailBuilder.EmailBuilderInstance.forwarding(MimeMessage)
with the provided Email
converted to MimeMessage
.EmailBuilder.EmailBuilderInstance.forwarding(Email)
.EmailPopulatingBuilder.from(String, String)
with empty name.EmailPopulatingBuilder.from(Recipient)
with a new Recipient
wrapped around the given name and email address.EmailPopulatingBuilder.from(Recipient)
with a new Recipient
wrapped around the given fixed name and email address.EmailPopulatingBuilder.from(Recipient)
with a new Recipient
wrapped around the given email address.Recipient
(ignoring its Message.RecipientType
if provided).Recipient.address
;Recipient.name
;Session
instance to debug or tweak.Recipient.type
;File
, if provided.InputStream
.MailerBuilder
, aimed for simplicity for sending e-mails of any complexity.MailerGenericBuilder
and fully configure a Mailer.Session
instance.Message.RecipientType.BCC
).EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
and a default HTML quoting
template.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
and a default HTML quoting
template.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
.EmailBuilder.EmailBuilderInstance.replyingTo(Email)
.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
and a default HTML quoting
template.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
.EmailBuilder.EmailBuilderInstance.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
and a default HTML quoting
template.EmailBuilder.EmailBuilderInstance.replyingToAll(Email)
.EmailAddressCriteria.RFC_COMPLIANT
.Mailer.sendMail(Email, boolean)
, with async = false
.MimeMessageHelper.signMessageWithDKIM(MimeMessage, Email)
EmailPopulatingBuilder.signWithDomainKey(InputStream, String, String)
with a ByteArrayInputStream
wrapped around the prodived dkimPrivateKey
data.EmailPopulatingBuilder.signWithDomainKey(InputStream, String, String)
with a ByteArrayInputStream
wrapped around the prodived dkimPrivateKey
string converted to UTF_8 byte array.EmailPopulatingBuilder.signWithDomainKey(InputStream, String, String)
, but with a File reference that is later read as InputStream
.Mailer
bean completely configured from property defaults.EmailBuilder.EmailBuilderInstance.startingBlank()
.#withRecipients(Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipients(Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withAddressesWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withAddressesWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
and empty default name.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipientsWithDefaultName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.TO
.#withRecipientsWithFixedName(String, Collection, RecipientType)
with Message.RecipientType.TO
.Session
may be configured using a
TransportStrategy
implementation.MailerFromSessionBuilder.usingSession(Session)
.Session
instance.Email
instance.#withRecipient(String, String, RecipientType)
for each address in the provided collection.#withAddresses(String, boolean, Collection, RecipientType)
, leaving existing names in tact and defaulting when missing.#withAddresses(String, boolean, Collection, RecipientType)
, assigning or overwriting existing names with the provided.EmailPopulatingBuilder.withAttachment(String, DataSource)
, with a named ByteArrayDataSource
created using the provided name, data and
mimetype.EmailPopulatingBuilder.withAttachment(String, DataSource)
for each attachment.EmailPopulatingBuilder.withBounceTo(Recipient)
with a new Recipient
wrapped around the email address (or null if missing).EmailPopulatingBuilder.withBounceTo(Recipient)
with a new Recipient
wrapped around the given name and email address.EmailPopulatingBuilder.withBounceTo(Recipient)
with a new Recipient
wrapped around the given address.EmailPopulatingBuilder.withBounceTo(Recipient)
with a new Recipient
wrapped around the given fixed name and address.Recipient
(ignoring its Message.RecipientType
if provided).MailerGenericBuilder.withDebugLogging(Boolean)
Session.setDebug(boolean)
so that it generates debug information.EmailPopulatingBuilder.dispositionNotificationTo
.EmailPopulatingBuilder.withDispositionNotificationTo(Recipient)
with a new Recipient
wrapped around the provided address.EmailPopulatingBuilder.withDispositionNotificationTo(Recipient)
with a new Recipient
wrapped around the provided name and address.EmailPopulatingBuilder.withDispositionNotificationTo(Recipient)
with a new Recipient
wrapped around the provided address.EmailPopulatingBuilder.withDispositionNotificationTo(Recipient)
with a new Recipient
wrapped around the provided fixed name and address.Recipient
.Mailer
instance.EmailPopulatingBuilder.withEmbeddedImage(String, DataSource)
, with a named ByteArrayDataSource
created using the provided name, data and
mimetype.EmailPopulatingBuilder.withEmbeddedImage(String, DataSource)
for each embedded image.EmailPopulatingBuilder.headers
list.EmailPopulatingBuilder.withHeader(String, Object)
for each header in the provided Map
.Session
when building a mailer.#withRecipient(String, String, RecipientType)
with the name omitted.Recipient
instance with the given name, address and Message.RecipientType
.Recipient
instance as copy of the provided recipient (copying name, address and Message.RecipientType
).#withRecipients(String, boolean, Collection, RecipientType)
.EmailPopulatingBuilder.withRecipient(Recipient)
for each address found in not just the collection, but also in every individual address string.#withRecipients(Collection, RecipientType)
with Message.RecipientType
left empty (so it will use the original values).#withRecipients(Collection, RecipientType)
with Message.RecipientType
left empty (so it will use the original values).#withRecipient(String, String, RecipientType)
for each recipient in the provided collection, optionally fixing the
recipientType for all recipients to the provided type.#withRecipients(String, boolean, Collection, RecipientType)
, leaving existing names in tact and defaulting when missing.#withRecipients(String, boolean, Collection, RecipientType)
.#withRecipients(String, boolean, Collection, RecipientType)
, assigning or overwriting existing names with the provided.#withRecipients(String, boolean, Collection, RecipientType)
.EmailPopulatingBuilder.withReplyTo(Recipient)
with a new Recipient
wrapped around the given email address (or null if missing).EmailPopulatingBuilder.withReplyTo(Recipient)
with a new Recipient
wrapped around the given fixed name and email address.EmailPopulatingBuilder.withReplyTo(Recipient)
with a new Recipient
wrapped around the given address.EmailPopulatingBuilder.withReplyTo(Recipient)
with a new Recipient
wrapped around the given fixed name and address.Recipient
(ignoring its Message.RecipientType
if provided).EmailPopulatingBuilder.returnReceiptTo
.EmailPopulatingBuilder.withReturnReceiptTo(Recipient)
with a new Recipient
wrapped around the provided address.EmailPopulatingBuilder.withReturnReceiptTo(Recipient)
with a new Recipient
wrapped around the provided name and address.EmailPopulatingBuilder.withReturnReceiptTo(Recipient)
with a new Recipient
wrapped around the provided address.EmailPopulatingBuilder.withReturnReceiptTo(Recipient)
with a new Recipient
wrapped around the provided fixed name and address.Recipient
.Copyright © 2018. All rights reserved.