public class OutlookMessageRecipient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OutlookMessageRecipient.Type
Represents the type of recipient.
|
| Constructor and Description |
|---|
OutlookMessageRecipient(OutlookMessageRecipient.Type type,
String email)
Creates a new
OutlookMessageRecipient with the given type and
email and a null name. |
OutlookMessageRecipient(OutlookMessageRecipient.Type type,
String email,
String name)
Creates a new
OutlookMessageRecipient with the specified parameters. |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Address |
getAddress()
Returns a new
Address from the email of this recipient. |
String |
getEmail()
Defines the email of the recipient.
|
String |
getName()
Defines the name of the recipient.
|
OutlookMessageRecipient.Type |
getType()
Returns the type of recipient.
|
void |
setEmail(String email) |
void |
setName(String name) |
public OutlookMessageRecipient(OutlookMessageRecipient.Type type, String email)
OutlookMessageRecipient with the given type and
email and a null name.type - The type.email - The email or null.public OutlookMessageRecipient(OutlookMessageRecipient.Type type, String email, String name)
OutlookMessageRecipient with the specified parameters.type - The type.email - The email or null.name - The name or null.public final OutlookMessageRecipient.Type getType()
public String getName()
public void setName(String name)
public String getEmail()
public void setEmail(String email)
public javax.mail.Address getAddress()
throws javax.mail.internet.AddressException
Address from the email of this recipient. If the email
is not defined, this method returns null.InternetAddress.javax.mail.internet.AddressException - If the email is not valid.Copyright © 2019. All rights reserved.