mail

package
v0.0.0-...-74a8149 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Adapted from the Google App Engine github.com/scorredoira/email packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(from, to *mail.Address, subject string,
	htmlContent string) (*email.Email, error)

NewMessage builds a new message instance

Types

type Mailer

type Mailer struct {
	Auth    smtp.Auth
	Address string
}

Mailer encapsulates data used for sending email.

func NewMailer

func NewMailer(username, password, host, port string) Mailer

NewMailer creates a new Mailer.

func (*Mailer) Send

func (m *Mailer) Send(msg *email.Email) error

Send sends an email Message.

Jump to

Keyboard shortcuts

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