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

Send a message.

send

(Email email)

returns Error?

Send a message.

Parameters

  • email Email
  • String message

  • Return Type

    (Error?)
  • An SendError if failed to send the message to the recipient