Class MailTrapConfig

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

public class MailTrapConfig extends MailConfigImpl
The MailTrapConfig class provides a predefined configuration for connecting to the MailTrap SMTP server. It sets specific properties required to use MailTrap's sandbox environment for sending emails.

Example usage:


 MailConfig config = new MailTrapConfig();
 // Further configuration or usage of config
 
Author:
Besmir Beqiri
See Also:
  • Constructor Details

    • MailTrapConfig

      public MailTrapConfig()
      Constructs a new MailTrapConfig instance with default settings for connecting to MailTrap's SMTP server. The configuration includes enabling SMTP authentication, enabling STARTTLS, setting the SMTP host to MailTrap's sandbox server, setting the SMTP port and trusting the MailTrap sandbox host for SSL connections.