public class EmailSettings extends Object implements SettingsSection
Constructor and Description |
---|
EmailSettings() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAdminEmails()
A list of email addresses for admins, these addresses will get exception emails
and other other system emails.
|
List<String> |
getAllowedOutboundEmails()
A list of whitelisted outbound email addresses
|
List<Pattern> |
getAllowedTestingOutboundEmailCompiledPatterns()
Compiled regular expressions for getAllowedTestingOutboundEmailPatterns()
|
List<String> |
getAllowedTestingOutboundEmailPatterns()
A list of regualar expressions, email addresses matching the patterns will be permitted outbound email
addresses even if restrictOutboundEmails is true.
|
String |
getCanSpamText()
The name and postal address of the sender, for compliance with the CAN-SPAM law
|
String |
getDefaultFromAddress()
The default email address for the "From" field.
|
String |
getHost()
The SMTP host
|
String |
getOutboundEmailTestAddress()
The email address that all outbound emails are routed to in local and QA mode.
|
String |
getPassword()
The password with which to connect to the SMTP server
|
Long |
getPort()
The SMTP port to try to connect to, defaults to 587
|
Boolean |
getRestrictOutboundEmails()
If true, will restrict outbound email address sending to a whitelist of addresses,
all other emails will be converted into a white-listed form using the "+" section.
|
Boolean |
getTls()
Whether to use TLS to connect, defaults to true
|
String |
getUsername()
The username with which to connect to the SMTP server
|
EmailSettings |
setAdminEmails(List<String> adminEmails) |
EmailSettings |
setAllowedOutboundEmails(List<String> allowedOutboundEmails) |
EmailSettings |
setAllowedTestingOutboundEmailCompiledPatterns(List<Pattern> allowedTestingOutboundEmailCompiledPatterns) |
EmailSettings |
setAllowedTestingOutboundEmailPatterns(List<String> allowedTestingOutboundEmailPatterns) |
void |
setCanSpamText(String canSpamText) |
void |
setDefaultFromAddress(String defaultFromAddress) |
void |
setHost(String host) |
EmailSettings |
setOutboundEmailTestAddress(String outboundEmailTestAddress) |
void |
setPassword(String password) |
void |
setPort(Long port) |
EmailSettings |
setRestrictOutboundEmails(Boolean restrictOutboundEmails) |
void |
setTls(Boolean tls) |
void |
setUsername(String username) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postLoad
public EmailSettings()
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getDefaultFromAddress()
public void setDefaultFromAddress(String defaultFromAddress)
public String getCanSpamText()
public void setCanSpamText(String canSpamText)
public List<String> getAdminEmails()
public EmailSettings setAdminEmails(List<String> adminEmails)
public Boolean getRestrictOutboundEmails()
public EmailSettings setRestrictOutboundEmails(Boolean restrictOutboundEmails)
public List<String> getAllowedTestingOutboundEmailPatterns()
public EmailSettings setAllowedTestingOutboundEmailPatterns(List<String> allowedTestingOutboundEmailPatterns)
public List<String> getAllowedOutboundEmails()
public EmailSettings setAllowedOutboundEmails(List<String> allowedOutboundEmails)
public List<Pattern> getAllowedTestingOutboundEmailCompiledPatterns()
public EmailSettings setAllowedTestingOutboundEmailCompiledPatterns(List<Pattern> allowedTestingOutboundEmailCompiledPatterns)
public String getOutboundEmailTestAddress()
public EmailSettings setOutboundEmailTestAddress(String outboundEmailTestAddress)
Copyright © 2016. All rights reserved.