mail

package
v0.0.0-...-f5e5ed5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2015 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer interface {
	SendMail([]string, string) error
}

Mailer provides the interface for a mailer

type MailerImpl

type MailerImpl struct {
	Server string
	Port   string
	Auth   smtp.Auth
	From   string
}

MailerImpl defines a mail transfer agent to use for sending mail

func New

func New(server, port, username, password string) MailerImpl

New constructs a Mailer to represent an account on a particular mail transfer agent.

func (*MailerImpl) SendMail

func (m *MailerImpl) SendMail(to []string, msg string) (err error)

SendMail sends an email to the provided list of recipients. The email body is simple text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL