java.lang.Object
one.jpro.platform.mail.impl.MailConfigImpl
one.jpro.platform.mail.config.GoogleMailConfig
- All Implemented Interfaces:
MailConfig
The GoogleMailConfig class provides a predefined configuration for connecting to the Google Mail (Gmail) SMTP server.
It sets specific properties required to use Gmail's SMTP server for sending emails.
Example usage:
MailConfig config = new GoogleMailConfig();
// Further configuration or usage of config
- Author:
- Besmir Beqiri
- See Also:
-
Field Summary
Fields inherited from interface one.jpro.platform.mail.MailConfig
DEFAULT_MAIL_DEBUG, DEFAULT_MAIL_SMTP_AUTH, DEFAULT_MAIL_SMTP_AUTH_DIGEST_MD5_DISABLE, DEFAULT_MAIL_SMTP_AUTH_XOAUTH2_DISABLE, DEFAULT_MAIL_SMTP_HOST, DEFAULT_MAIL_SMTP_PORT, DEFAULT_MAIL_SMTP_SSL_CHECKSERVERIDENTITY, DEFAULT_MAIL_SMTP_SSL_ENABLE, DEFAULT_MAIL_SMTP_STARTTLS, MAIL_DEBUG, MAIL_SMTP_AUTH, MAIL_SMTP_AUTH_DIGEST_MD5_DISABLE, MAIL_SMTP_AUTH_LOGIN_DISABLE, MAIL_SMTP_AUTH_MECHANISMS, MAIL_SMTP_AUTH_PLAIN_DISABLE, MAIL_SMTP_AUTH_XOAUTH2_DISABLE, MAIL_SMTP_CONNECTIONTIMEOUT, MAIL_SMTP_HOST, MAIL_SMTP_PORT, MAIL_SMTP_SSL_CHECKSERVERIDENTITY, MAIL_SMTP_SSL_ENABLE, MAIL_SMTP_SSL_TRUST, MAIL_SMTP_STARTTLS_ENABLE, MAIL_SMTP_STARTTLS_REQUIRED, MAIL_SMTP_TIMEOUT, MAIL_SMTP_USER -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new GoogleMailConfig instance with default settings for connecting to Google's SMTP server. -
Method Summary
Methods inherited from class one.jpro.platform.mail.impl.MailConfigImpl
getMailSmtpAuthMechanisms, getMailSmtpConnectionTimeout, getMailSmtpHost, getMailSmtpPort, getMailSmtpSslTrust, getMailSmtpStartTLS, getMailSmtpTimeout, getMailSmtpUser, getProperties, isMailDebug, isMailSmtpAuth, isMailSmtpAuthDigestMd5Disable, isMailSmtpAuthLoginDisable, isMailSmtpAuthPlainDisable, isMailSmtpAuthXOAuth2Disable, isMailSmtpSslCheckServerIdentity, isMailSmtpSslEnable, setMailDebug, setMailSmtpAuth, setMailSmtpAuthDigestMd5Disable, setMailSmtpAuthLoginDisable, setMailSmtpAuthMechanisms, setMailSmtpAuthPlainDisable, setMailSmtpAuthXOAuth2Disable, setMailSmtpConnectionTimeout, setMailSmtpHost, setMailSmtpPort, setMailSmtpSslCheckServerIdentity, setMailSmtpSslEnable, setMailSmtpSslTrust, setMailSmtpStartTLS, setMailSmtpTimeout, setMailSmtpUser
-
Constructor Details
-
GoogleMailConfig
public GoogleMailConfig()Constructs a new GoogleMailConfig instance with default settings for connecting to Google's SMTP server. The configuration includes enabling SMTP authentication, enabling STARTTLS, setting the SMTP host to Google's SMTP server, and setting the SMTP port to the standard port for TLS/STARTTLS.
-