public class SMTPConfiguration extends Object
Constructor and Description |
---|
SMTPConfiguration()
Creates a new configuration based on either the system configuration or the current scope.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultSender()
Returns the default sender from the system configuration.
|
static String |
getDefaultSenderName()
Returns the default sender name from the system configuration.
|
String |
getMailHost()
Returns the hostname of the mail server to be used.
|
String |
getMailPassword()
Returns the password used to authenticate against the mail server
|
String |
getMailPort()
Returns the port used to connect to the mail server
|
String |
getMailSender()
Returns the sender address used when no other address is supplied.
|
String |
getMailSenderName()
Returns the sender name which is used when no other sender name is supplied.
|
String |
getMailUser()
Returns the username used to authenticate against the mail server
|
boolean |
isUseSenderAndEnvelopeFrom()
Determines if mails sent via this configuration use a "Sender" and "Envelope-From" header with the mail
sender / senderName or not.
|
public SMTPConfiguration()
Therefore such an instance must not be cached or reused.
public static String getDefaultSender()
public static String getDefaultSenderName()
public String getMailHost()
public String getMailPort()
public String getMailUser()
public String getMailPassword()
public String getMailSender()
Also if isUseSenderAndEnvelopeFrom()
is true, this is used as "Sender" as well as
the "Envelope-Sender"
public String getMailSenderName()
public boolean isUseSenderAndEnvelopeFrom()
Copyright © 2018. All rights reserved.