Clients - email : SmtpClient

Represents an SMTP Client, which interacts with an SMTP Server.

Constructor

__init

(string host, string username, string password, SmtpConfig clientConfig)

  • host string
  • Host of the SMTP Client

  • username string
  • Username of the SMTP Client

  • password string
  • Password of the SMTP Client

  • clientConfig SmtpConfig {}
  • Configurations for SMTP Client

Remote Methods

send Sends a message.
 email:Error? response = smtpClient->send(email);

send

(Email email)

returns Error?

Sends a message.

 email:Error? response = smtpClient->send(email);

Parameters

  • email Email
  • An email:Email message, which needs to be sent to the recipient

  • Return Type

    (Error?)
  • An email:SendError if failed to send the message to the recipient or else ()