Class JKMailInfo

java.lang.Object
com.jk.core.mail.JKMailInfo

public class JKMailInfo extends Object
The Class MailInfo.
  • Constructor Details

    • JKMailInfo

      public JKMailInfo()
  • Method Details

    • addAttachment

      public void addAttachment(Attachment attachment)
      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 exception
      IOException - 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

      public String getUsername()
      Gets the username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the username.
      Parameters:
      username - the new username
    • setPassword

      public void setPassword(String password)
      Sets the password.
      Parameters:
      password - the new password
    • getFrom

      public String getFrom()
      Gets the from.
      Returns:
      the from
    • getHost

      public String getHost()
      Gets the host.
      Returns:
      the host
    • getMsg

      public String getMsg()
      Gets the msg.
      Returns:
      the msg
    • getSubject

      public String getSubject()
      Gets the subject.
      Returns:
      the subject
    • getTo

      public String getTo()
      Gets the to.
      Returns:
      the to
    • setFrom

      public void setFrom(String from)
      Sets the from.
      Parameters:
      from - the new from
    • setHost

      public void setHost(String host)
      Sets the host.
      Parameters:
      host - the new host
    • setMsg

      public void setMsg(String msg)
      Sets the msg.
      Parameters:
      msg - the new msg
    • setSubject

      public void setSubject(String subject)
      Sets the subject.
      Parameters:
      subject - the new subject
    • setTo

      public void setTo(String to)
      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

      public String getCc()
      Gets the cc.
      Returns:
      the cc
    • setCc

      public void setCc(String cc)
      Sets the cc.
      Parameters:
      cc - the new cc
    • getBcc

      public String getBcc()
      Gets the bcc.
      Returns:
      the bcc
    • setBcc

      public void setBcc(String bcc)
      Sets the bcc.
      Parameters:
      bcc - the new bcc