java.lang.Object
one.jpro.platform.mail.impl.MailConfigImpl
one.jpro.platform.mail.config.MailTrapConfig
- All Implemented Interfaces:
MailConfig
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:
-
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 MailTrapConfig instance with default settings for connecting to MailTrap'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
-
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.
-