klyn.mails.SmtpTransport.connect
method

    public connect() as SmtpResponse throws MessagingException:

Description

Opens the SMTP connection and performs greeting, EHLO and optional AUTH.

    import klyn.mails

    session = Session.smtp("smtp.example.com")
    transport = SmtpTransport(session)

Throws

- MessagingException if message validation, MIME rendering, SMTP connection, SMTP command exchange, or delivery fails.