Package com.jk.core.mail
Class JKMailInfo
java.lang.Object
com.jk.core.mail.JKMailInfo
The Class MailInfo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(Attachment attachment) Adds the attachment.void
fillEmail
(org.apache.commons.mail.MultiPartEmail email) Fill email.getBcc()
Gets the bcc.getCc()
Gets the cc.getFrom()
Gets the from.getHost()
Gets the host.getMsg()
Gets the msg.int
Gets the smtp port.Gets the subject.getTo()
Gets the to.Gets the username.boolean
Checks if is requires authentication.boolean
Checks if is secured.void
Sets the bcc.void
Sets the cc.void
Sets the from.void
Sets the host.void
Sets the msg.void
setPassword
(String password) Sets the password.void
setRequiresAuthentication
(boolean requiresAuthentication) Sets the requires authentication.void
setSecured
(boolean secured) Sets the secured.void
setSmtpPort
(int smtpPort) Sets the smtp port.void
setSubject
(String subject) Sets the subject.void
Sets the to.void
setUsername
(String username) Sets the username.
-
Constructor Details
-
JKMailInfo
public JKMailInfo()
-
-
Method Details
-
addAttachment
Adds the attachment.- Parameters:
attachment
- the attachment
-
fillEmail
public void fillEmail(org.apache.commons.mail.MultiPartEmail email) throws org.apache.commons.mail.EmailException, IOException Fill email.- Parameters:
email
- the email- Throws:
org.apache.commons.mail.EmailException
- the email exceptionIOException
- Signals that an I/O exception has occurred.
-
getSmtpPort
public int getSmtpPort()Gets the smtp port.- Returns:
- the smtp port
-
setSmtpPort
public void setSmtpPort(int smtpPort) Sets the smtp port.- Parameters:
smtpPort
- the new smtp port
-
isRequiresAuthentication
public boolean isRequiresAuthentication()Checks if is requires authentication.- Returns:
- true, if is requires authentication
-
setRequiresAuthentication
public void setRequiresAuthentication(boolean requiresAuthentication) Sets the requires authentication.- Parameters:
requiresAuthentication
- the new requires authentication
-
getUsername
Gets the username.- Returns:
- the username
-
setUsername
Sets the username.- Parameters:
username
- the new username
-
setPassword
Sets the password.- Parameters:
password
- the new password
-
getFrom
Gets the from.- Returns:
- the from
-
getHost
Gets the host.- Returns:
- the host
-
getMsg
Gets the msg.- Returns:
- the msg
-
getSubject
Gets the subject.- Returns:
- the subject
-
getTo
Gets the to.- Returns:
- the to
-
setFrom
Sets the from.- Parameters:
from
- the new from
-
setHost
Sets the host.- Parameters:
host
- the new host
-
setMsg
Sets the msg.- Parameters:
msg
- the new msg
-
setSubject
Sets the subject.- Parameters:
subject
- the new subject
-
setTo
Sets the to.- Parameters:
to
- the new to
-
isSecured
public boolean isSecured()Checks if is secured.- Returns:
- true, if is secured
-
setSecured
public void setSecured(boolean secured) Sets the secured.- Parameters:
secured
- the new secured
-
getCc
Gets the cc.- Returns:
- the cc
-
setCc
Sets the cc.- Parameters:
cc
- the new cc
-
getBcc
Gets the bcc.- Returns:
- the bcc
-
setBcc
Sets the bcc.- Parameters:
bcc
- the new bcc
-