public enum OutboundEmailProtocol extends Enum<OutboundEmailProtocol>
| Enum Constant and Description |
|---|
SMTP
Not encrypted SMTP protocol.
|
SMTP_OVER_TLS
SMTP protocol encrypted using TLS (STARTTLS enabled).
|
SMTPS
SMTP protocol encrypted using SSL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPort()
Gets default port that is used for this protocol.
|
String |
getProtocolName()
Gets the name of this protocol.
|
static OutboundEmailProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OutboundEmailProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutboundEmailProtocol SMTP
The port number used by default: 25.
public static final OutboundEmailProtocol SMTP_OVER_TLS
The port number used by default: 587.
public static final OutboundEmailProtocol SMTPS
The port number used by default: 465.
public static OutboundEmailProtocol[] values()
for (OutboundEmailProtocol c : OutboundEmailProtocol.values()) System.out.println(c);
public static OutboundEmailProtocol 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 nullpublic String getDefaultPort()
public String getProtocolName()
Copyright © 2023. All rights reserved.