Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailerImpl ¶
type MailerImpl struct {
// contains filtered or unexported fields
}
MailerImpl defines a mail transfer agent to use for sending mail. It is not safe for concurrent access.
func New ¶
func New( server, port, username, password string, rootCAs *x509.CertPool, from mail.Address, logger blog.Logger, stats metrics.Scope, reconnectBase time.Duration, reconnectMax time.Duration) *MailerImpl
New constructs a Mailer to represent an account on a particular mail transfer agent.
func NewDryRun ¶
func NewDryRun(from mail.Address, logger blog.Logger) *MailerImpl
New constructs a Mailer suitable for doing a dry run. It simply logs each command that would have been run, at debug level.
func (*MailerImpl) Connect ¶
func (m *MailerImpl) Connect() error
Connect opens a connection to the specified mail server. It must be called before SendMail.
Click to show internal directories.
Click to hide internal directories.