@FullyTested public enum EmailMessageAddressType extends Enum<EmailMessageAddressType>
JavaMailSessionBuilderFactory.INSTANCE| Enum Constant and Description |
|---|
FROM
Required: The from address of an email message.
|
SENDER
Optional: The sender address when 'sent-on-behalf'.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
isRequired |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
setValue(javax.mail.internet.MimeMessage m,
javax.mail.internet.InternetAddress inetAddr) |
static EmailMessageAddressType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmailMessageAddressType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmailMessageAddressType FROM
MimeMessage.setFrom(Address)public static final EmailMessageAddressType SENDER
MimeMessage.setSender(Address)public static EmailMessageAddressType[] values()
for (EmailMessageAddressType c : EmailMessageAddressType.values()) System.out.println(c);
public static EmailMessageAddressType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2013–2020. All rights reserved.