email

package
v0.0.0-...-da45c02 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SmtpConfig

type SmtpConfig struct {
	Username string
	Password string
	Host     string
	Addr     string
}

type SmtpHandler

type SmtpHandler struct {
	smtp.Auth
	Addr    string
	From    string
	To      []string
	Subject string
}

func NewSmtpHandler

func NewSmtpHandler(config SmtpConfig, from string, to []string, subject string) *SmtpHandler

func (*SmtpHandler) AddToAccount

func (s *SmtpHandler) AddToAccount(to ...string)

func (*SmtpHandler) SendMail

func (s *SmtpHandler) SendMail(subject string, message string, isHtml bool) error

func (*SmtpHandler) SetFrom

func (s *SmtpHandler) SetFrom(from string)

func (*SmtpHandler) SetSubject

func (s *SmtpHandler) SetSubject(subject string)

Jump to

Keyboard shortcuts

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