klyn.mails.SmtpResponse.SmtpResponse
constructor
public SmtpResponse(code as Int, lines as ArrayList<String> = null):
Description
Creates an SMTP response.
import klyn.mails

response = SmtpResponse(220, ["220 mail.example.com ready"])
print(response.message)
Parameters
  • code SMTP status code.
  • lines Raw response lines. ```klyn import klyn.mails response = SmtpResponse(220, ["220 mail.example.com ready"]) print(response.message) ```