Package com.mendix.modules.email
Class SMTPConfiguration
java.lang.Object
com.mendix.modules.email.SMTPConfiguration
- All Implemented Interfaces:
ISMTPConfiguration
Deprecated.
since 10.12.
Use Email Connector from Mendix Marketplace instead.
Represents an SMTP configuration.
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates an empty default SMTP configuration.SMTPConfiguration
(int smtpPort, String smtpHost, String userName, String userPass, boolean useSSLSMTP, boolean checkServerIdentity, String fromAddress, String replyToAddress) Deprecated.Instantiate SMTPConfiguration using given parameters.SMTPConfiguration
(int smtpPort, String smtpHost, String userName, String userPass, boolean useSSLSMTP, String fromAddress, String replyToAddress) Deprecated.Instantiate SMTPConfiguration using given parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Returns whether to check server identity when using SSL.Deprecated.Returns the From address for sending emails.Deprecated.Returns the Reply-To address for sending emails.Deprecated.Returns the host name for SMTP.int
Deprecated.Returns the port number for SMTP.Deprecated.Returns the username for SMTP authentication.Deprecated.Returns the password for SMTP authentication.void
setFromAddress
(String fromAddress) Deprecated.void
setReplyToAddress
(String replyToAddress) Deprecated.void
setSMTPHost
(String host) Deprecated.void
setSMTPPort
(int port) Deprecated.void
setUserName
(String userName) Deprecated.void
setUserPass
(String userPass) Deprecated.void
setUseSSLSMTP
(boolean useSSLSMTP) Deprecated.boolean
Deprecated.Returns whether to use SSL for SMTP.
-
Constructor Details
-
SMTPConfiguration
public SMTPConfiguration()Deprecated.Creates an empty default SMTP configuration. -
SMTPConfiguration
public SMTPConfiguration(int smtpPort, String smtpHost, String userName, String userPass, boolean useSSLSMTP, String fromAddress, String replyToAddress) Deprecated.Instantiate SMTPConfiguration using given parameters.- Parameters:
smtpPort
- smtp portsmtpHost
- smtp hostuserName
- user nameuserPass
- passworduseSSLSMTP
- use SSLfromAddress
- from addressreplyToAddress
- replyTo address
-
SMTPConfiguration
public SMTPConfiguration(int smtpPort, String smtpHost, String userName, String userPass, boolean useSSLSMTP, boolean checkServerIdentity, String fromAddress, String replyToAddress) Deprecated.Instantiate SMTPConfiguration using given parameters.- Parameters:
smtpPort
- smtp portsmtpHost
- smtp hostuserName
- user nameuserPass
- passworduseSSLSMTP
- use SSLcheckServerIdentity
- check server identityfromAddress
- from addressreplyToAddress
- replyTo address
-
-
Method Details
-
useSSLSMTP
public boolean useSSLSMTP()Deprecated.Description copied from interface:ISMTPConfiguration
Returns whether to use SSL for SMTP.- Specified by:
useSSLSMTP
in interfaceISMTPConfiguration
- Returns:
- true if SSL is used, false otherwise
-
setUseSSLSMTP
Deprecated.Description copied from interface:ISMTPConfiguration
Sets whether to use SSL for SMTP.- Specified by:
setUseSSLSMTP
in interfaceISMTPConfiguration
- Parameters:
useSSLSMTP
- true if SSL is to be used, false otherwise
-
getSMTPPort
public int getSMTPPort()Deprecated.Description copied from interface:ISMTPConfiguration
Returns the port number for SMTP.- Specified by:
getSMTPPort
in interfaceISMTPConfiguration
- Returns:
- the port number
-
setSMTPPort
Deprecated.Description copied from interface:ISMTPConfiguration
Sets the port number for SMTP to the specified value.- Specified by:
setSMTPPort
in interfaceISMTPConfiguration
- Parameters:
port
- the port number to set
-
getSMTPHost
Deprecated.Description copied from interface:ISMTPConfiguration
Returns the host name for SMTP.- Specified by:
getSMTPHost
in interfaceISMTPConfiguration
- Returns:
- the host name
-
setSMTPHost
Deprecated.Description copied from interface:ISMTPConfiguration
Sets the host name for SMTP to the specified value.- Specified by:
setSMTPHost
in interfaceISMTPConfiguration
- Parameters:
host
- the host name to set
-
getUserName
Deprecated.Description copied from interface:ISMTPConfiguration
Returns the username for SMTP authentication.- Specified by:
getUserName
in interfaceISMTPConfiguration
- Returns:
- the SMTP username
-
setUserName
Deprecated.Description copied from interface:ISMTPConfiguration
Sets the username for SMTP authentication.- Specified by:
setUserName
in interfaceISMTPConfiguration
- Parameters:
userName
- the username to set
-
getUserPass
Deprecated.Description copied from interface:ISMTPConfiguration
Returns the password for SMTP authentication.- Specified by:
getUserPass
in interfaceISMTPConfiguration
- Returns:
- the SMTP password
-
setUserPass
Deprecated.Description copied from interface:ISMTPConfiguration
Sets the password name for SMTP authentication.- Specified by:
setUserPass
in interfaceISMTPConfiguration
- Parameters:
userPass
- the password to set
-
getFromAddress
Deprecated.Description copied from interface:ISMTPConfiguration
Returns the From address for sending emails.- Specified by:
getFromAddress
in interfaceISMTPConfiguration
- Returns:
- the from address
-
setFromAddress
Deprecated.Description copied from interface:ISMTPConfiguration
Sets the From address for SMTP to the specified address.- Specified by:
setFromAddress
in interfaceISMTPConfiguration
- Parameters:
fromAddress
- the address from which emails will be sent
-
getReplyToAddress
Deprecated.Description copied from interface:ISMTPConfiguration
Returns the Reply-To address for sending emails.- Specified by:
getReplyToAddress
in interfaceISMTPConfiguration
- Returns:
- the address where replies should go
-
setReplyToAddress
Deprecated.Description copied from interface:ISMTPConfiguration
Sets 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:
setReplyToAddress
in interfaceISMTPConfiguration
- Parameters:
replyToAddress
- the address to which email replies should go, or null if no such header should be included
-
checkServerIdentity
public boolean checkServerIdentity()Deprecated.Description copied from interface:ISMTPConfiguration
Returns whether to check server identity when using SSL.- Specified by:
checkServerIdentity
in interfaceISMTPConfiguration
- Returns:
- true if server identity will be checked, false otherwise
-