Versions in this module Expand all Collapse all v3 v3.3.4 Sep 30, 2024 Changes in this version + func NewSMTPClient(call goja.ConstructorCall, runtime *goja.Runtime) *goja.Object + type Client struct + func (c *Client) IsOpenRelay(msg *SMTPMessage) (bool, error) + func (c *Client) IsSMTP() (SMTPResponse, error) + func (c *Client) SendMail(msg *SMTPMessage) (bool, error) + type SMTPMessage struct + func (s *SMTPMessage) Auth(username, password string) *SMTPMessage + func (s *SMTPMessage) Body(msg []byte) *SMTPMessage + func (s *SMTPMessage) From(email string) *SMTPMessage + func (s *SMTPMessage) String() string + func (s *SMTPMessage) Subject(sub string) *SMTPMessage + func (s *SMTPMessage) To(email string) *SMTPMessage + type SMTPResponse struct + Banner string + IsSMTP bool