org.silverpeas.mail.engine
Class SmtpConfiguration
java.lang.Object
org.silverpeas.mail.engine.SmtpConfiguration
public class SmtpConfiguration
- extends Object
SMTP configuration
- Author:
- Emmanuel Hugonnet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SECURE_TRANSPORT
public static final String SECURE_TRANSPORT
- See Also:
- Constant Field Values
SIMPLE_TRANSPORT
public static final String SIMPLE_TRANSPORT
- See Also:
- Constant Field Values
SmtpConfiguration
public SmtpConfiguration()
fromDefaultSettings
public static SmtpConfiguration fromDefaultSettings()
- Gets an instance of
SmtpConfiguration
initializes with the data provided by MailUtil
.
- Returns:
- a new instance of
SmtpConfiguration
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getServer
public String getServer()
setServer
public void setServer(String server)
getPort
public int getPort()
setPort
public void setPort(int port)
isAuthenticate
public boolean isAuthenticate()
setAuthenticate
public void setAuthenticate(boolean authenticate)
isSecure
public boolean isSecure()
setSecure
public void setSecure(boolean secure)
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean debug)
Copyright © 2016 Silverpeas. All Rights Reserved.