| Modifier and Type | Method and Description |
|---|---|
Mailer.Builder |
bcc(javax.mail.internet.InternetAddress bcc)
Adds an email address to the list of
bcc addresses that will be added
to every email sent by the resulting Mailer instance. |
Mailer.Builder |
bcc(String bcc) |
Mailer |
build() |
Mailer.Builder |
cc(javax.mail.internet.InternetAddress cc)
Adds an email address to the list of
cc addresses that will be added
to every email sent by the resulting Mailer instance. |
Mailer.Builder |
cc(String cc) |
Mailer.Builder |
from(javax.mail.internet.InternetAddress from)
Sets an email address that will be used as the from address for any Mail instance that
does not specify such an address.
|
Mailer.Builder |
from(String from) |
Mailer.Builder |
to(javax.mail.internet.InternetAddress to)
Adds an email address to the list of
to addresses that will be added
to every email sent by the resulting Mailer instance. |
Mailer.Builder |
to(String to) |
public Mailer.Builder from(javax.mail.internet.InternetAddress from)
from - a valid, non-null InternetAddressthis Mailer.Builder instance, to allow for method chainingIllegalArgumentException - if argument is nullpublic Mailer.Builder from(String from)
from - a valid, non-blank String that can be parsed as InternetAddressthis Mailer.Builder instanceIllegalArgumentException - if argument is not a legal email addressfrom(InternetAddress)public Mailer.Builder to(javax.mail.internet.InternetAddress to)
to addresses that will be added
to every email sent by the resulting Mailer instance.to - a valid, non-null InternetAddressthis Mailer.Builder instance, to allow for method chainingIllegalArgumentException - if argument is nullpublic Mailer.Builder to(String to)
to - a valid, non-blank String that can be parsed as InternetAddressthis Mailer.Builder instanceIllegalArgumentException - if argument is a wrongly formatted addressto(InternetAddress)public Mailer.Builder cc(javax.mail.internet.InternetAddress cc)
cc addresses that will be added
to every email sent by the resulting Mailer instance.cc - a valid, non-null InternetAddressthis Mailer.Builder instance, to allow for method chainingIllegalArgumentException - if argument is nullpublic Mailer.Builder cc(String cc)
cc - a valid, non-blank String that can be parsed as InternetAddressthis Mailer.Builder instanceIllegalArgumentException - if argument is a wrongly formatted addresscc(InternetAddress)public Mailer.Builder bcc(javax.mail.internet.InternetAddress bcc)
bcc addresses that will be added
to every email sent by the resulting Mailer instance.bcc - a valid, non-null InternetAddressthis Mailer.Builder instance, to allow for method chainingIllegalArgumentException - if argument is nullpublic Mailer.Builder bcc(String bcc)
bcc - a valid, non-blank String that can be parsed as InternetAddressthis Mailer.Builder instanceIllegalArgumentException - if argument is a wrongly formatted addressbcc(InternetAddress)public Mailer build()
Copyright © 2015. All rights reserved.