| Package | Description |
|---|---|
| org.simplejavamail.email |
| Modifier and Type | Method and Description |
|---|---|
EmailBuilder |
EmailBuilder.addAttachment(String name,
byte[] data,
String mimetype)
Adds an attachment to the email message and generates the necessary
DataSource with the given byte data. |
EmailBuilder |
EmailBuilder.addAttachment(String name,
DataSource filedata)
Overloaded method which sets an attachment on account of name and
DataSource. |
EmailBuilder |
EmailBuilder.addHeader(String name,
Object value)
Adds a header to the
headers list. |
EmailBuilder |
EmailBuilder.bcc(Recipient... recipientsToAdd)
Adds new
Recipient instances to the list on account of name, address with recipient type Message.RecipientType#BCC. |
EmailBuilder |
EmailBuilder.bcc(String... emailAddresses)
Adds new
Recipient instances to the list on account of empty name, address with recipient type Message.RecipientType#BCC. |
EmailBuilder |
EmailBuilder.bcc(String emailAddressList)
Delegates to
bcc(String, String) while omitting the name for the BCC recipient(s). |
EmailBuilder |
EmailBuilder.bcc(String name,
String emailAddressList)
Adds anew
Recipient instances to the list on account of empty name, address with recipient type Message.RecipientType#BCC. |
EmailBuilder |
EmailBuilder.cc(Recipient... recipientsToAdd)
Adds new
Recipient instances to the list on account of name, address with recipient type Message.RecipientType#CC. |
EmailBuilder |
EmailBuilder.cc(String... emailAddresses)
Adds new
Recipient instances to the list on account of empty name, address with recipient type Message.RecipientType#CC. |
EmailBuilder |
EmailBuilder.cc(String emailAddressList)
Delegates to
cc(String, String) while omitting the name for the CC recipient(s). |
EmailBuilder |
EmailBuilder.cc(String name,
String emailAddressList)
Adds anew
Recipient instances to the list on account of empty name, address with recipient type Message.RecipientType#CC. |
EmailBuilder |
EmailBuilder.embedImage(String name,
byte[] data,
String mimetype)
Adds an embedded image (attachment type) to the email message and generates the necessary
DataSource with the given byte data. |
EmailBuilder |
EmailBuilder.embedImage(String name,
DataSource imagedata)
Overloaded method which sets an embedded image on account of name and
DataSource. |
EmailBuilder |
EmailBuilder.from(Recipient recipient)
Sets the sender address
fromRecipient with preconfigured Recipient. |
EmailBuilder |
EmailBuilder.from(String name,
String fromAddress)
Sets the sender address
fromRecipient. |
EmailBuilder |
EmailBuilder.id(String id)
Sets the optional id to be used when sending using the underlying Java Mail framework.
|
EmailBuilder |
EmailBuilder.replyTo(Recipient recipient)
Sets
replyToRecipient (optional) with preconfigured Recipient. |
EmailBuilder |
EmailBuilder.replyTo(String name,
String replyToAddress)
Sets
replyToRecipient (optional). |
EmailBuilder |
EmailBuilder.signWithDomainKey(byte[] dkimPrivateKey,
String signingDomain,
String dkimSelector)
Sets all info needed for DKIM, using a byte array for private key data.
|
EmailBuilder |
EmailBuilder.signWithDomainKey(File dkimPrivateKeyFile,
String signingDomain,
String dkimSelector)
Sets all info needed for DKIM, using a file reference for private key data.
|
EmailBuilder |
EmailBuilder.signWithDomainKey(InputStream dkimPrivateKeyInputStream,
String signingDomain,
String dkimSelector)
Sets all info needed for DKIM, using an input stream for private key data.
|
EmailBuilder |
EmailBuilder.signWithDomainKey(String dkimPrivateKey,
String signingDomain,
String dkimSelector)
Sets all info needed for DKIM, using a byte array for private key data.
|
EmailBuilder |
EmailBuilder.subject(String subject)
Sets the
subject. |
EmailBuilder |
EmailBuilder.text(String text)
Sets the
text. |
EmailBuilder |
EmailBuilder.textHTML(String textHTML)
Sets the
textHTML. |
EmailBuilder |
EmailBuilder.to(Recipient... recipientsToAdd)
Adds new
Recipient instances to the list on account of name, address with recipient type Message.RecipientType#TO. |
EmailBuilder |
EmailBuilder.to(String... emailAddresses)
Adds new
Recipient instances to the list on account of empty name, address with recipient type Message.RecipientType#TO. |
EmailBuilder |
EmailBuilder.to(String emailAddressList)
Delegates to
to(String, String) while omitting the name used for the recipient(s). |
EmailBuilder |
EmailBuilder.to(String name,
String emailAddressList)
Adds anew
Recipient instances to the list on account of given name, address with recipient type Message.RecipientType#TO. |
EmailBuilder |
EmailBuilder.withDispositionNotificationTo()
Indicates that we want to use the NPM flag
dispositionNotificationTo. |
EmailBuilder |
EmailBuilder.withDispositionNotificationTo(Recipient recipient)
Indicates that we want to use the NPM flag
dispositionNotificationTo with the given preconfigred Recipient. |
EmailBuilder |
EmailBuilder.withDispositionNotificationTo(String address)
Indicates that we want to use the NPM flag
dispositionNotificationTo with the given mandatory address. |
EmailBuilder |
EmailBuilder.withDispositionNotificationTo(String name,
String address)
Indicates that we want to use the NPM flag
dispositionNotificationTo with the given optional name and mandatory address. |
EmailBuilder |
EmailBuilder.withReturnReceiptTo()
Indicates that we want to use the flag
returnReceiptTo. |
EmailBuilder |
EmailBuilder.withReturnReceiptTo(Recipient recipient)
Indicates that we want to use the NPM flag
returnReceiptTo with the preconfigured Recipient. |
EmailBuilder |
EmailBuilder.withReturnReceiptTo(String address)
Indicates that we want to use the NPM flag
returnReceiptTo with the given mandatory address. |
EmailBuilder |
EmailBuilder.withReturnReceiptTo(String name,
String address)
Indicates that we want to use the NPM flag
returnReceiptTo with the given optional name and mandatory address. |
Copyright © 2017. All rights reserved.