klyn.mails.MimeMessage.render
method

    public override render() as String throws MessagingException:

Description

Renders this message as RFC 5322 text.

    import klyn.mails

    message = MimeMessage()
    message.from = InternetAddress("robot@example.com")
    message.addTo("user@example.com")
    print(message.render())

Throws

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