Class BasicMailAddress
java.lang.Object
net.solarnetwork.central.mail.support.BasicMailAddress
- All Implemented Interfaces:
MailAddress
Basic implementation of
MailAddress.-
Constructor Summary
ConstructorsConstructorDescriptionBasicMailAddress(String[] to) Constructor.BasicMailAddress(String toName, String toAddress) Construct with a single "to" address. -
Method Summary
Modifier and TypeMethodDescriptionString[]getBcc()Get list of addresses to blind-carbon-copy the mail to.String[]getCc()Get list of addresses to carbon-copy the mail to.getFrom()Get the address to send the mail from.String[]getTo()Get list of addresses to send the mail to.voidvoidvoidvoid
-
Constructor Details
-
BasicMailAddress
Constructor.- Parameters:
to- the to email address list- Since:
- 1.1
-
BasicMailAddress
Construct with a single "to" address.- Parameters:
toName- the address display nametoAddress- the email address
-
-
Method Details
-
getBcc
Description copied from interface:MailAddressGet list of addresses to blind-carbon-copy the mail to.- Specified by:
getBccin interfaceMailAddress- Returns:
- array of email addresses
-
getCc
Description copied from interface:MailAddressGet list of addresses to carbon-copy the mail to.- Specified by:
getCcin interfaceMailAddress- Returns:
- array of email addresses
-
getFrom
Description copied from interface:MailAddressGet the address to send the mail from.- Specified by:
getFromin interfaceMailAddress- Returns:
- email address
-
getTo
Description copied from interface:MailAddressGet list of addresses to send the mail to.- Specified by:
getToin interfaceMailAddress- Returns:
- array of email addresses
-
setTo
- Parameters:
to- the to to set
-
setCc
- Parameters:
cc- the cc to set
-
setBcc
- Parameters:
bcc- the bcc to set
-
setFrom
- Parameters:
from- the from to set
-