Package ru.bgcrm.util

Class MailConfig

java.lang.Object
ru.bgcrm.util.MailConfig

public class MailConfig extends Object
E-Mail configuration. Provides IMAP and SMTP sessions.
  • Constructor Details

    • MailConfig

      public MailConfig(ConfigMap config)
  • Method Details

    • getEmail

      public String getEmail()
    • getFrom

      public String getFrom()
    • check

      public boolean check()
    • getImapSessionStaticProperties

      public static Properties getImapSessionStaticProperties()
      Returns:
      default set of IMAP session properties.
    • getImapSession

      public javax.mail.Session getImapSession() throws Exception
      Throws:
      Exception
    • getImapStore

      public javax.mail.Store getImapStore() throws Exception
      Throws:
      Exception
    • getSmtpSession

      public javax.mail.Session getSmtpSession(ConfigMap defaultParamMap)