Transport
class in package klyn.mails

    public class Transport extends Object:

Object
└ Transport

High-level sending helper inspired by JavaMail `Transport`.

    import klyn.mails

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

Properties inherited from Object: type
Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | deliver `deliver(message as MimeMessage, session as Session = null) as SmtpResponse throws MessagingException:` | Sends a message using either the provided session or the session attached to the message itself.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml