mail

package
v0.0.0-...-8a4eff6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotifierFactory

func NewNotifierFactory(authClient *auth.Client, email, password, server string, port int) cron.NotifierFactory

Types

type MailNotifier

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

func (*MailNotifier) Notify

func (n *MailNotifier) Notify(ctx context.Context, papers []cron.Paper) error

type Request

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

func NewRequest

func NewRequest(to []string, from, subject, server string, port int) *Request

func (*Request) ParseTemplate

func (r *Request) ParseTemplate(templateFileName string, data interface{}) *Request

func (*Request) SendEmail

func (r *Request) SendEmail(auth smtp.Auth) error

Jump to

Keyboard shortcuts

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