EmailPopulatingBuilder.appendText(String)
.EmailPopulatingBuilder.appendTextHTML(String)
.Java <= 7
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with fixedRecipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with fixedRecipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
, with recipientType=
Message.RecipientType#BCC
and fixedName=true
assigning or overwriting existing names with the provided name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#BCC
.Email.Email(EmailPopulatingBuilder)
with this
as argument.Mailer
instance with everything configured on this builder instance.Mailer
instance with everything configured on this builder instance.MailerRegularBuilder.buildMailer()
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
, with recipientType=
Message.RecipientType#CC
and fixedName=true
assigning or overwriting existing names with the provided name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#CC
.EmailStartingBuilder.copying(Email)
, by converting the provided message first.EmailStartingBuilder.copying(Email)
, by building the email first.EmailStartingBuilder.copying(MimeMessage)
.EmailStartingBuilder.copying(EmailPopulatingBuilder)
.EmailStartingBuilder.copying(Email)
.Integer.MAX_VALUE
), effectively indefinately.false
, sending mails rather than just only logging the mails.1080
.60000
milliseconds (affects socket connect-,
read- and write timeouts).false
, sending mails rather than just only logging the mails.EmailPopulatingBuilder
to this Email instance.EmailPopulatingBuilderImpl
for filling in details.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.MimeMessageProducerHelper.produceMimeMessage(Email, Session)
.EmailConverter.emlToEmail(InputStream, Pkcs12Config)
.EmailConverter.emlToEmailBuilder(InputStream, Pkcs12Config)
with the full string value read from the given InputStream
.EmailConverter.emlToEmail(String, Pkcs12Config)
.EmailConverter.emlToEmailBuilder(String, Pkcs12Config)
.EmailConverter.emlToEmail(File, Pkcs12Config)
.EmailConverter.emlToEmailBuilder(File, Pkcs12Config)
.EmailConverter.emlToEmailBuilder(File, Pkcs12Config)
.EmailConverter.emlToEmail(String)
with the full string value read from the given InputStream
.EmailConverter.emlToEmailBuilder(String, Pkcs12Config)
.EmailConverter.emlToMimeMessage(String, Session)
using a dummy Session
instance and passes the result to EmailConverter.mimeMessageToEmailBuilder(MimeMessage, Pkcs12Config)
.EmailConverter.emlToMimeMessage(File, Session)
, using EmailConverter.createDummySession()
.EmailConverter.emlToMimeMessage(InputStream, Session)
.MimeMessage.MimeMessage(Session, InputStream)
.EmailConverter.emlToMimeMessage(String, Session)
with an empty Session
instance.MimeMessage.MimeMessage(Session, InputStream)
.EmailPopulatingBuilder.encryptWithSmime(X509Certificate)
using the provided PEM file.EmailPopulatingBuilder.encryptWithSmime(InputStream)
using the provided PEM file.EmailPopulatingBuilder.encryptWithSmime(InputStream)
using the provided PEM file.EmailStartingBuilder.forwarding(MimeMessage)
with the provided Email
converted to MimeMessage
.EmailStartingBuilder.forwarding(Email)
.EmailStartingBuilder.forwarding(MimeMessage)
.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
;DataSource.getInputStream()
Recipient.name
;Session
instance to debug or tweak.Recipient.type
;EmailPopulatingBuilder.fixingMessageId(String)
instead. This method is used internally to
update the message id once a mail has been sent.File
, if provided.InputStream
.MailerRegularBuilder
.MailerGenericBuilder
and fully configure a Mailer.Session
instance.Mailer
.Mailer
operates.EmailConverter.outlookMsgToEmail(String, Pkcs12Config)
.EmailConverter.outlookMsgToEmailBuilder(File)
and then builds and returns the email.EmailConverter.outlookMsgToEmailBuilder(File, Pkcs12Config)
and then builds and returns the email.EmailConverter.outlookMsgToEML(String, Pkcs12Config)
.EmailConverter.outlookMsgToEML(File, Pkcs12Config)
.FileInputStream
without closing it.EmailPopulatingBuilder.prependText(String)
.EmailPopulatingBuilder.prependTextHTML(String)
.MiscUtil.readInputStreamToBytes(InputStream)
with data source input stream.MiscUtil.readInputStreamToString(InputStream, Charset)
with data source input stream.Message.RecipientType.BCC
).EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
and a default HTML quoting
template.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
and a default HTML quoting
template.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to false
.EmailStartingBuilder.replyingTo(Email)
.EmailStartingBuilder.replyingTo(Email, String)
.EmailStartingBuilder.replyingTo(MimeMessage)
.EmailStartingBuilder.replyingTo(MimeMessage, String)
.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
and a default HTML quoting
template.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
.EmailStartingBuilder.replyingTo(MimeMessage, boolean, String)
with replyToAll set to true
and a default HTML quoting
template.EmailStartingBuilder.replyingToAll(Email)
.EmailStartingBuilder.replyingToAll(Email, String)
.EmailStartingBuilder.replyingToAll(MimeMessage, String)
.EmailStartingBuilder.replyingToAll(MimeMessage)
.Mailer
.EmailAddressCriteria.RFC_COMPLIANT
.Executors.newSingleThreadExecutor()
.Mailer.sendMail(Email, boolean)
, with async = false
.Email
instance into a completely configured Message
.Mailer
instance and closes remaining open connections.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
.EmailPopulatingBuilder.signWithSmime(Pkcs12Config)
.Mailer
bean completely configured from property defaults as well as a MailerGenericBuilder
for your convenience in case you wish to further configure it in Java code.EmailStartingBuilder.startingBlank()
.Mailer.testConnection(boolean)
with async == false
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
, with recipientType=
Message.RecipientType#TO
and
fixedName=true
assigning or overwriting existing names with the provided name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withAddressesWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withAddressesWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
and empty default name.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipientsWithDefaultName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.EmailPopulatingBuilder.withRecipientsWithFixedName(String, Collection, Message.RecipientType)
with recipientType=
Message.RecipientType#TO
.Session
may be configured using a
TransportStrategy
implementation.Session
instance.MailerFromSessionBuilderImpl.usingSession(Session)
.Email
instance.EmailPopulatingBuilder.withRecipient(String, String, Message.RecipientType)
for each address in the provided collection.EmailPopulatingBuilder.withAddresses(String, boolean, Collection, Message.RecipientType)
, leaving existing names in tact and defaulting when missing.EmailPopulatingBuilder.withAddresses(String, boolean, Collection, Message.RecipientType)
, with fixedName=true
assigning or overwriting existing names with the provided name.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).Mailer
instances represent
individual connection pools within the same cluster.>0
, configures the connection pool to wait for a limited time after which the attempt to claim a Transport connection errors out.>0
, configures the connection pool to automatically close connections after some milliseconds (default 5000) since last usage.Session.setDebug(boolean)
so that it generates debug information.MailerGenericBuilder.withDebugLogging(Boolean)
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.withHeader(String, Object)
for each header in the provided Map
.EmailPopulatingBuilder.withHTMLText(String)
.EmailPopulatingBuilder.withPlainText(String)
.Session
when building a mailer.null
.MailerGenericBuilder.withProxyHost(String)
MailerGenericBuilder.withProxyPort(Integer)
MailerGenericBuilder.withProxyUsername(String)
MailerGenericBuilder.withProxyPassword(String)
EmailPopulatingBuilder.withRecipient(String, String, Message.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
).EmailPopulatingBuilder.withRecipient(Recipient)
for each address found in not just the collection, but also in every individual address string
that is in the collection.EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with Message.RecipientType
left empty (so it will use the original values).EmailPopulatingBuilder.withRecipients(Collection, Message.RecipientType)
with Message.RecipientType
left empty (so it will use the original values).EmailPopulatingBuilder.withRecipient(String, String, Message.RecipientType)
for each recipient in the provided collection, optionally fixing the
recipientType for all recipients to the provided type.EmailPopulatingBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
, leaving existing names in tact and defaulting when missing.EmailPopulatingBuilder.withRecipients(String, boolean, Collection, Message.RecipientType)
, with fixedName=true
assigning or overwriting existing names with the provided name.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).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
.MailerRegularBuilder.withSMTPServer(String, Integer)
.MailerRegularBuilder.withSMTPServerHost(String)
.MailerRegularBuilder.withSMTPServerPassword(String)
.MailerRegularBuilder.withSMTPServerPort(Integer)
.MailerRegularBuilder.withSMTPServerUsername(String)
.Copyright © 2009–2019. All rights reserved.