Package com.mendix.modules.email
Class SMTPConfiguration
- java.lang.Object
-
- com.mendix.modules.email.SMTPConfiguration
-
- All Implemented Interfaces:
ISMTPConfiguration
public class SMTPConfiguration extends java.lang.Object implements ISMTPConfiguration
Represents an SMTP configuration.
-
-
Constructor Summary
Constructors Constructor Description SMTPConfiguration()Creates an empty default SMTP configuration.SMTPConfiguration(int smtpPort, java.lang.String smtpHost, java.lang.String userName, java.lang.String userPass, boolean useSSLSMTP, java.lang.String fromAddress, java.lang.String replyToAddress)Instantiate SMTPConfiguration using given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetFromAddress()Returns the From address for sending emails.java.lang.StringgetReplyToAddress()Returns the Reply-To address for sending emails.java.lang.StringgetSMTPHost()Returns the host name for SMTP.intgetSMTPPort()Returns the port number for SMTP.java.lang.StringgetUserName()Returns the username for SMTP authentication.java.lang.StringgetUserPass()Returns the password for SMTP authentication.voidsetFromAddress(java.lang.String fromAddress)Deprecated.voidsetReplyToAddress(java.lang.String replyToAddress)Deprecated.voidsetSMTPHost(java.lang.String host)Deprecated.voidsetSMTPPort(int port)Deprecated.voidsetUserName(java.lang.String userName)Deprecated.voidsetUserPass(java.lang.String userPass)Deprecated.voidsetUseSSLSMTP(boolean useSSLSMTP)Deprecated.booleanuseSSLSMTP()Returns whether to use SSL for SMTP.
-
-
-
Constructor Detail
-
SMTPConfiguration
public SMTPConfiguration()
Creates an empty default SMTP configuration.
-
SMTPConfiguration
public SMTPConfiguration(int smtpPort, java.lang.String smtpHost, java.lang.String userName, java.lang.String userPass, boolean useSSLSMTP, java.lang.String fromAddress, java.lang.String replyToAddress)Instantiate SMTPConfiguration using given parameters.- Parameters:
smtpPort- smtp portsmtpHost- smtp hostuserName- user nameuserPass- passworduseSSLSMTP- use SSLfromAddress- from addressreplyToAddress- replyTo address
-
-
Method Detail
-
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
@Deprecated public void setUseSSLSMTP(boolean useSSLSMTP)
Deprecated.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
@Deprecated public void setSMTPPort(int port)
Deprecated.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
public java.lang.String getSMTPHost()
Description copied from interface:ISMTPConfigurationReturns the host name for SMTP.- Specified by:
getSMTPHostin interfaceISMTPConfiguration- Returns:
- the host name
-
setSMTPHost
@Deprecated public void setSMTPHost(java.lang.String host)
Deprecated.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
public java.lang.String getUserName()
Description copied from interface:ISMTPConfigurationReturns the username for SMTP authentication.- Specified by:
getUserNamein interfaceISMTPConfiguration- Returns:
- the SMTP username
-
setUserName
@Deprecated public void setUserName(java.lang.String userName)
Deprecated.Description copied from interface:ISMTPConfigurationSets the username for SMTP authentication.- Specified by:
setUserNamein interfaceISMTPConfiguration- Parameters:
userName- the username to set
-
getUserPass
public java.lang.String getUserPass()
Description copied from interface:ISMTPConfigurationReturns the password for SMTP authentication.- Specified by:
getUserPassin interfaceISMTPConfiguration- Returns:
- the SMTP password
-
setUserPass
@Deprecated public void setUserPass(java.lang.String userPass)
Deprecated.Description copied from interface:ISMTPConfigurationSets the password name for SMTP authentication.- Specified by:
setUserPassin interfaceISMTPConfiguration- Parameters:
userPass- the password to set
-
getFromAddress
public java.lang.String getFromAddress()
Description copied from interface:ISMTPConfigurationReturns the From address for sending emails.- Specified by:
getFromAddressin interfaceISMTPConfiguration- Returns:
- the from address
-
setFromAddress
@Deprecated public void setFromAddress(java.lang.String fromAddress)
Deprecated.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
public java.lang.String 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
@Deprecated public void setReplyToAddress(java.lang.String replyToAddress)
Deprecated.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
-
-