@Immutable public interface Protocol
This is how you're supposed to use it:
Postman postman = new Postman.Default( new SMTP( new Token("user", "password").access( new Protocol.SMTP("bind", "port") ) ) );For SMTPS use the
Protocol.Smtpsrespectively. SMTPS protocol should work only with the SMTPS wire because the wire uses the "smtps" transport to make the connection to the mail server:
final Transport transport = this.session.getTransport("smtps"); transport.connect();
Copyright © 2012–2017 jcabi.com. All rights reserved.