public final class SmtpConnectionFactories extends Object
SmtpConnectionFactory factory| Modifier and Type | Method and Description |
|---|---|
static SmtpConnectionFactory |
newSmtpFactory()
Initialize the
SmtpConnectionFactory with a
Session initialized to Session.getInstance(new Properties()),
TransportStrategyFactory.newSessiontStrategy(),
ConnectionStrategyFactory.newConnectionStrategy() |
static SmtpConnectionFactory |
newSmtpFactory(javax.mail.Session session)
Initialize the
SmtpConnectionFactory using the provided
Session and
TransportStrategyFactory.newSessiontStrategy(),
ConnectionStrategyFactory.newConnectionStrategy() |
public static SmtpConnectionFactory newSmtpFactory()
SmtpConnectionFactory with a
Session initialized to Session.getInstance(new Properties()),
TransportStrategyFactory.newSessiontStrategy(),
ConnectionStrategyFactory.newConnectionStrategy()public static SmtpConnectionFactory newSmtpFactory(javax.mail.Session session)
SmtpConnectionFactory using the provided
Session and
TransportStrategyFactory.newSessiontStrategy(),
ConnectionStrategyFactory.newConnectionStrategy()session - Copyright © 2016. All rights reserved.