Package com.mendix.modules.email
Class SMTPConfiguration
java.lang.Object
com.mendix.modules.email.SMTPConfiguration
- All Implemented Interfaces:
ISMTPConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the From address for sending emails.Returns the Reply-To address for sending emails.Returns the host name for SMTP.intReturns the port number for SMTP.Returns the user name for SMTP authentication.Returns the password for SMTP authentication.voidsetFromAddress(String fromAddress) Sets the From address for SMTP to the specified address.voidsetReplyToAddress(String replyToAddress) Sets the Reply-To address for SMTP to the specified address.voidsetSMTPHost(String host) Sets the host name for SMTP to the specified value.voidsetSMTPPort(int port) Sets the port number for SMTP to the specified value.voidsetUserName(String userName) Sets the user name for SMTP authentication.voidsetUserPass(String userPass) Sets the password name for SMTP authentication.voidsetUseSSLSMTP(boolean useSSLSMTP) Sets whether to use SSL for SMTP.booleanReturns whether to use SSL for SMTP.
-
Constructor Details
-
SMTPConfiguration
public SMTPConfiguration()
-
-
Method Details
-
useSSLSMTP
public boolean useSSLSMTP()Description copied from interface:ISMTPConfigurationReturns whether to use SSL for SMTP.- Specified by:
useSSLSMTPin interfaceISMTPConfiguration- Returns:
- true if SSL is used, false otherwise
-
setUseSSLSMTP
public void setUseSSLSMTP(boolean useSSLSMTP) Description copied from interface:ISMTPConfigurationSets whether to use SSL for SMTP.- Specified by:
setUseSSLSMTPin interfaceISMTPConfiguration- Parameters:
useSSLSMTP- true if SSL is to be used, false otherwise
-
getSMTPPort
public int getSMTPPort()Description copied from interface:ISMTPConfigurationReturns the port number for SMTP.- Specified by:
getSMTPPortin interfaceISMTPConfiguration- Returns:
- the port number
-
setSMTPPort
public void setSMTPPort(int port) Description copied from interface:ISMTPConfigurationSets the port number for SMTP to the specified value.- Specified by:
setSMTPPortin interfaceISMTPConfiguration- Parameters:
port- the port number to set
-
getSMTPHost
Description copied from interface:ISMTPConfigurationReturns the host name for SMTP.- Specified by:
getSMTPHostin interfaceISMTPConfiguration- Returns:
- the host name
-
setSMTPHost
Description copied from interface:ISMTPConfigurationSets the host name for SMTP to the specified value.- Specified by:
setSMTPHostin interfaceISMTPConfiguration- Parameters:
host- the host name to set
-
getUserName
Description copied from interface:ISMTPConfigurationReturns the user name for SMTP authentication.- Specified by:
getUserNamein interfaceISMTPConfiguration- Returns:
- the SMTP user name
-
setUserName
Description copied from interface:ISMTPConfigurationSets the user name for SMTP authentication.- Specified by:
setUserNamein interfaceISMTPConfiguration- Parameters:
userName- the user name to set
-
getUserPass
Description copied from interface:ISMTPConfigurationReturns the password for SMTP authentication.- Specified by:
getUserPassin interfaceISMTPConfiguration- Returns:
- the SMTP password
-
setUserPass
Description copied from interface:ISMTPConfigurationSets the password name for SMTP authentication.- Specified by:
setUserPassin interfaceISMTPConfiguration- Parameters:
userPass- the password to set
-
getFromAddress
Description copied from interface:ISMTPConfigurationReturns the From address for sending emails.- Specified by:
getFromAddressin interfaceISMTPConfiguration- Returns:
- the from address
-
setFromAddress
Description copied from interface:ISMTPConfigurationSets the From address for SMTP to the specified address.- Specified by:
setFromAddressin interfaceISMTPConfiguration- Parameters:
fromAddress- the address from which emails will be sent
-
getReplyToAddress
Description copied from interface:ISMTPConfigurationReturns the Reply-To address for sending emails.- Specified by:
getReplyToAddressin interfaceISMTPConfiguration- Returns:
- the address where replies should go
-
setReplyToAddress
Description copied from interface:ISMTPConfigurationSets the Reply-To address for SMTP to the specified address. Set to null if no Reply-To headers should be included in emails.- Specified by:
setReplyToAddressin interfaceISMTPConfiguration- Parameters:
replyToAddress- the address to which email replies should go, or null if no such header should be included
-