email

ModuleServer-Side

Basic SMTP client

Documentation

emailsendmessageMessageconfigConfigcallbackerrorfalseSendErrorundeliveredEmailAddresses

SMTP client. Rejected recipients are specified in undelivered as an array of EmailAddress objects if the message was otherwise accepted by the SMTP server.

MessagefromEmailAddresstoEmailAddressesccEmailAddressesbccEmailAddressessubjectstringbodystringheadersobject

Content-Type, Date, and Message-ID headers are added by default, and can be overridden in the headers object, whose values can be null, strings, or string arrays. New lines in body are normalized to \r\n.

EmailAddressesundefinedEmailAddressEmailAddress...
EmailAddressstringemailstringnamestring
ConfigsmtpHost'127.0.0.1'stringsmtpClient'localhost'stringport25number
SendErrorcodenullnumbermessagestring