public class Recipient extends Object
EmailAddress
)Constructor and Description |
---|
Recipient(EmailAddress address)
Initialize the recipient with the provided address.
|
Recipient(EmailAddress address,
RecipientType type)
Initialize the recipient with the provided address and for the provided type.
|
Recipient(String address)
The address is of the form "anyuser@anyhost.anydomain" or "Name LastName <user@host.domain>".
|
Modifier and Type | Method and Description |
---|---|
EmailAddress |
getAddress() |
RecipientType |
getType() |
String |
toString() |
public Recipient(String address)
RecipientType.TO
.address
- the email address as described abovepublic Recipient(EmailAddress address)
RecipientType.TO
.address
- the email addresspublic Recipient(EmailAddress address, RecipientType type)
address
- the email addresstype
- the recipient type see RecipientType.TO
.public EmailAddress getAddress()
public RecipientType getType()
Copyright © 2019. All Rights Reserved.