mail

package
v0.0.0-...-d38aeb8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	ToList  []string
	CcList  []string
	Subject string
	Body    string
}

type Mailer

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

func NewMailer

func NewMailer(smtpCfg *SMTPConfig) (*Mailer, error)

func (*Mailer) NewSMTPConnection

func (m *Mailer) NewSMTPConnection() (*SMTPConn, error)

type MailerConfig

type MailerConfig struct {
	SMTP SMTPConfig
}

type SMTPConfig

type SMTPConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	SSL      bool
}

type SMTPConn

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

func (*SMTPConn) Close

func (c *SMTPConn) Close() error

func (*SMTPConn) SendMail

func (c *SMTPConn) SendMail(e *Email) error

Jump to

Keyboard shortcuts

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