klyn.mails.Session.deliver
method

    public deliver(message as MimeMessage) as SmtpResponse throws MessagingException:

Description

Sends a message through this session.

    import klyn.mails

    session = Session.smtp("smtp.example.com")
    message = MimeMessage(session)

Throws

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