Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( server, port, username, password string, rootCAs *x509.CertPool, from mail.Address, logger blog.Logger, stats prometheus.Registerer, reconnectBase time.Duration, reconnectMax time.Duration) *mailerImpl
New constructs a Mailer to represent an account on a particular mail transfer agent.
Types ¶
type BadAddressSMTPError ¶
type BadAddressSMTPError struct {
Message string
}
BadAddressSMTPError is returned by SendMail when the server rejects a message but for a reason that doesn't prevent us from continuing to send mail. The error message contains the error code and the error message returned from the server.
func (BadAddressSMTPError) Error ¶
func (e BadAddressSMTPError) Error() string
Click to show internal directories.
Click to hide internal directories.