Documentation ¶
Index ¶
Constants ¶
View Source
const ( SmtpAuthPlain = "PLAIN" SmtpAuthLogin = "LOGIN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmtpClient ¶
type SmtpClient struct { Host string Port int Username string Password string Tls bool // SMTP auth method to use // (if not explicitly set, defaults to "PLAIN") AuthMethod string // LocalName is optional domain name used for the EHLO/HELO exchange // (if not explicitly set, defaults to "localhost"). // // This is required only by some SMTP servers, such as Gmail SMTP-relay. LocalName string }
SmtpClient defines a SMTP mail client structure that implements `mailer.Mailer` interface.
func NewSmtpClient
deprecated
func (*SmtpClient) Send ¶
func (c *SmtpClient) Send(m *Message) error
Send implements `mailer.Mailer` interface.
Click to show internal directories.
Click to hide internal directories.