SmtpResponse
class in package klyn.mails

    public class SmtpResponse extends Object:

Object
└ SmtpResponse

SMTP response returned by `SmtpTransport`.

    import klyn.mails

    response = SmtpResponse(250, ["250 OK"])
    print(response.ok)

Fields

Modifier and Type | Member | Description
--- | --- | ---
public readonly | code `code as Int` | SMTP status code.
public readonly | lines `lines as ArrayList<String>` | Raw response lines received from the server.
public readonly | message `message as String` | Final response message without the leading numeric code.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | ok `ok as Boolean:` | Returns true when the response is successful or intermediate.

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SmtpResponse `SmtpResponse(code as Int, lines as ArrayList<String> = null):` | Creates an SMTP response.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | toString `toString() as String:` | No summary.

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