Example usage for org.apache.commons.mail SimpleEmail getSslSmtpPort

List of usage examples for org.apache.commons.mail SimpleEmail getSslSmtpPort

Introduction

In this page you can find the example usage for org.apache.commons.mail SimpleEmail getSslSmtpPort.

Prototype

public String getSslSmtpPort() 

Source Link

Document

Returns the current SSL port used by the SMTP transport.

Usage

From source file:com.adobe.acs.commons.hc.impl.SMTPMailServiceHealthCheck.java

private void logMailServiceConfig(FormattingResultLog resultLog, SimpleEmail email) {
    resultLog.info("SMTP Host: {}", email.getHostName());
    resultLog.info("SMTP use SSL: {}", email.isSSL());
    if (email.isSSL()) {
        resultLog.info("SMTP SSL Port: {}", email.getSslSmtpPort());
    } else {//from w  ww  . j  a v  a 2 s .co  m
        resultLog.info("SMTP Port: {}", email.getSmtpPort());
    }
    resultLog.info("SMTP From Address: {}", email.getFromAddress());
    resultLog.info("Socket Connection Timeout: {} seconds", email.getSocketConnectionTimeout() / 1000);
    resultLog.info("Socket IO Timeout: {} seconds", email.getSocketTimeout() / 1000);
}