Package com.day.cq.mailer.api.commons
Class MailerConfig
java.lang.Object
com.day.cq.mailer.api.commons.MailerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionMailerConfig(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.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. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanbooleanbooleanbooleanboolean
-
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
-
getSmtpPort
public int getSmtpPort() -
getSmtpUser
-
getSmtpPassword
-
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()
-