public class EmailAccount
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
host
The smtp host address.
|
protected java.lang.String |
password
The user password.
|
protected java.lang.Integer |
port
The smpt host port.
|
protected java.lang.String |
sender
The sender email.
|
protected boolean |
ssl
Flag if ssl should be used.
|
protected java.lang.String |
user
The user name.
|
Constructor and Description |
---|
EmailAccount(java.lang.String host,
java.lang.Integer port,
java.lang.String user,
java.lang.String password,
java.lang.String sender,
boolean ssl)
Create a new account.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Get host.
|
java.lang.String |
getPassword()
Get the password.
|
java.lang.Integer |
getPort()
Get the port.
|
java.lang.String |
getSender()
Get the sender.
|
java.lang.String |
getUser()
Get the user.
|
boolean |
isSsl()
Is ssl connection?
|
void |
setHost(java.lang.String host)
Set the host.
|
void |
setPassword(java.lang.String password)
Set the password.
|
void |
setPort(java.lang.Integer port)
Set the port.
|
void |
setSender(java.lang.String sender)
Set the sender.
|
void |
setSsl(boolean ssl)
Set the ssl connection property.
|
void |
setUser(java.lang.String user)
Set the user.
|
protected java.lang.String host
protected java.lang.Integer port
protected java.lang.String user
protected java.lang.String password
protected java.lang.String sender
protected boolean ssl
public EmailAccount(java.lang.String host, java.lang.Integer port, java.lang.String user, java.lang.String password, java.lang.String sender, boolean ssl)
host
- The smtp host.port
- The smtp port.user
- The user name.password
- The password.sender
- The sender email.ssl
- Flag for ssl.public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The host.public java.lang.Integer getPort()
public void setPort(java.lang.Integer port)
port
- The port.public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The user.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password.public java.lang.String getSender()
public void setSender(java.lang.String sender)
sender
- The sender.public boolean isSsl()
public void setSsl(boolean ssl)
ssl
- Flag indicating ssl.