Package org.bgerp.util.mail

# Class MailConfig

java.lang.Object
org.bgerp.util.mail.MailConfig

public class MailConfig extends Object
Email configuration for IMAP and SMTP sessions

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MailConfig(ConfigMap config)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `check()`
  `String`
  `getEmail()`
  `String`
  `getFrom()`
  `jakarta.mail.Session`
  `getImapSession()`
  `static Properties`
  `getImapSessionStaticProperties()`
  `jakarta.mail.Store`
  `getImapStore()`
  `jakarta.mail.Session`
  `getSmtpSession(ConfigMap defaultParamMap)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MailConfig

    public MailConfig(ConfigMap config)

- ## Method Details

  - ### getImapSessionStaticProperties

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

  - ### getEmail

    public String getEmail()

  - ### getFrom

    public String getFrom()

  - ### check

    public boolean check()

  - ### getImapSession

    public jakarta.mail.Session getImapSession() throws Exception
    Throws:
      `Exception`

  - ### getImapStore

    public jakarta.mail.Store getImapStore() throws Exception
    Throws:
      `Exception`

  - ### getSmtpSession

    public jakarta.mail.Session getSmtpSession(ConfigMap defaultParamMap)