List of usage examples for org.apache.commons.mail Email setSSL
@Deprecated public void setSSL(final boolean ssl)
From source file:org.yestech.notify.deliver.EmailDelivery.java
protected void enableAuthenticator(Email email) { if (isSsl()) { email.setSSL(true); }//from www . j av a2 s. com if (isTls()) { email.setTLS(true); } if (StringUtils.isNotBlank(getAuthenticatorUserName()) && StringUtils.isNotBlank(getAuthenticatorPassword())) { email.setAuthentication(getAuthenticatorUserName(), getAuthenticatorPassword()); } }