Package com.mendix.modules.email
Class SMTPConfiguration
java.lang.Object
com.mendix.modules.email.SMTPConfiguration
- All Implemented Interfaces:
- ISMTPConfiguration
Represents an SMTP configuration.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 username for SMTP authentication.Returns the password for SMTP authentication.voidsetFromAddress(String fromAddress) Deprecated.voidsetReplyToAddress(String replyToAddress) Deprecated.voidsetSMTPHost(String host) Deprecated.voidsetSMTPPort(int port) Deprecated.voidsetUserName(String userName) Deprecated.voidsetUserPass(String userPass) Deprecated.voidsetUseSSLSMTP(boolean useSSLSMTP) Deprecated.booleanReturns whether to use SSL for SMTP.
- 
Constructor Details- 
SMTPConfigurationpublic SMTPConfiguration()Creates an empty default SMTP configuration.
- 
SMTPConfigurationpublic SMTPConfiguration(int smtpPort, String smtpHost, String userName, String userPass, boolean useSSLSMTP, String fromAddress, String replyToAddress) Instantiate SMTPConfiguration using given parameters.- Parameters:
- smtpPort- smtp port
- smtpHost- smtp host
- userName- user name
- userPass- password
- useSSLSMTP- use SSL
- fromAddress- from address
- replyToAddress- replyTo address
 
 
- 
- 
Method Details- 
useSSLSMTPpublic boolean useSSLSMTP()Description copied from interface:ISMTPConfigurationReturns whether to use SSL for SMTP.- Specified by:
- useSSLSMTPin interface- ISMTPConfiguration
- Returns:
- true if SSL is used, false otherwise
 
- 
setUseSSLSMTPDeprecated.Description copied from interface:ISMTPConfigurationSets whether to use SSL for SMTP.- Specified by:
- setUseSSLSMTPin interface- ISMTPConfiguration
- Parameters:
- useSSLSMTP- true if SSL is to be used, false otherwise
 
- 
getSMTPPortpublic int getSMTPPort()Description copied from interface:ISMTPConfigurationReturns the port number for SMTP.- Specified by:
- getSMTPPortin interface- ISMTPConfiguration
- Returns:
- the port number
 
- 
setSMTPPortDeprecated.Description copied from interface:ISMTPConfigurationSets the port number for SMTP to the specified value.- Specified by:
- setSMTPPortin interface- ISMTPConfiguration
- Parameters:
- port- the port number to set
 
- 
getSMTPHostDescription copied from interface:ISMTPConfigurationReturns the host name for SMTP.- Specified by:
- getSMTPHostin interface- ISMTPConfiguration
- Returns:
- the host name
 
- 
setSMTPHostDeprecated.Description copied from interface:ISMTPConfigurationSets the host name for SMTP to the specified value.- Specified by:
- setSMTPHostin interface- ISMTPConfiguration
- Parameters:
- host- the host name to set
 
- 
getUserNameDescription copied from interface:ISMTPConfigurationReturns the username for SMTP authentication.- Specified by:
- getUserNamein interface- ISMTPConfiguration
- Returns:
- the SMTP username
 
- 
setUserNameDeprecated.Description copied from interface:ISMTPConfigurationSets the username for SMTP authentication.- Specified by:
- setUserNamein interface- ISMTPConfiguration
- Parameters:
- userName- the username to set
 
- 
getUserPassDescription copied from interface:ISMTPConfigurationReturns the password for SMTP authentication.- Specified by:
- getUserPassin interface- ISMTPConfiguration
- Returns:
- the SMTP password
 
- 
setUserPassDeprecated.Description copied from interface:ISMTPConfigurationSets the password name for SMTP authentication.- Specified by:
- setUserPassin interface- ISMTPConfiguration
- Parameters:
- userPass- the password to set
 
- 
getFromAddressDescription copied from interface:ISMTPConfigurationReturns the From address for sending emails.- Specified by:
- getFromAddressin interface- ISMTPConfiguration
- Returns:
- the from address
 
- 
setFromAddressDeprecated.Description copied from interface:ISMTPConfigurationSets the From address for SMTP to the specified address.- Specified by:
- setFromAddressin interface- ISMTPConfiguration
- Parameters:
- fromAddress- the address from which emails will be sent
 
- 
getReplyToAddressDescription copied from interface:ISMTPConfigurationReturns the Reply-To address for sending emails.- Specified by:
- getReplyToAddressin interface- ISMTPConfiguration
- Returns:
- the address where replies should go
 
- 
setReplyToAddressDeprecated.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 interface- ISMTPConfiguration
- Parameters:
- replyToAddress- the address to which email replies should go, or null if no such header should be included
 
 
-