Class GoogleMailConfig

java.lang.Object
one.jpro.platform.mail.impl.MailConfigImpl
one.jpro.platform.mail.config.GoogleMailConfig
All Implemented Interfaces:
MailConfig

public class GoogleMailConfig extends MailConfigImpl
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:
  • 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.