email

package
v0.0.0-...-d1a64ea Latest Latest
Warning

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

Go to latest
Published: May 22, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplate

func ParseTemplate(templateFormat string, params ...interface{}) string

ParseTemplate parses a standard HTML template and places the parameters in the template's indicated parts

func SendAccountActivationEmail

func SendAccountActivationEmail(email, urlEndpoint string) error

SendAccountActivationEmail sends an account activation confirmation email to a user

func SendPasswordResetEmail

func SendPasswordResetEmail(email, urlEndpoint string) error

SendPasswordResetEmail sends an account password reset instructions email to a user

Types

type Email

type Email struct {
	// contains filtered or unexported fields
}

Email struct is used to send an email message

func NewEmail

func NewEmail() *Email

NewEmail creates a new email message

func (*Email) Send

func (email *Email) Send() error

Send sends the email message

func (*Email) SetBody

func (email *Email) SetBody(body string)

SetBody sets the body of the email

func (*Email) SetRecipient

func (email *Email) SetRecipient(address string)

SetRecipient sets the receiver of the email

func (*Email) SetSubject

func (email *Email) SetSubject(subject string)

SetSubject sets the subject of the email

Jump to

Keyboard shortcuts

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