Class MailerConfig

java.lang.Object
com.day.cq.mailer.api.commons.MailerConfig

public class MailerConfig extends Object
  • Constructor Details

    • MailerConfig

      public MailerConfig(String smtpHost, int smtpPort, String smtpUser, String smtpPassword, String fromAddress, boolean debugEmail, boolean smtpSsl, boolean smtpTls, boolean requireTls, boolean oauthFlow)
      Original constructor — backward compatible with all existing callers. oauthFlow=true routes to SMTP OAuth, graphFlow defaults to false.
    • MailerConfig

      public MailerConfig(String smtpHost, int smtpPort, String smtpUser, String smtpPassword, String fromAddress, boolean debugEmail, boolean smtpSsl, boolean smtpTls, boolean requireTls, boolean oauthFlow, boolean graphFlow)
      Constructor with Graph API support. Set graphFlow=true to send via Microsoft Graph API instead of SMTP.
  • Method Details

    • getSmtpHost

      public String getSmtpHost()
    • getSmtpPort

      public int getSmtpPort()
    • getSmtpUser

      public String getSmtpUser()
    • getSmtpPassword

      public String getSmtpPassword()
    • getFromAddress

      public String getFromAddress()
    • isDebugEmail

      public boolean isDebugEmail()
    • isSmtpSsl

      public boolean isSmtpSsl()
    • isSmtpTls

      public boolean isSmtpTls()
    • isRequireTls

      public boolean isRequireTls()
    • isOauthFlow

      public boolean isOauthFlow()
    • isGraphFlow

      public boolean isGraphFlow()