mail

package
v0.0.0-...-13f99a9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPasswordAuth

func NewPasswordAuth(username string, password string) smtp.Auth

Types

type PasswordAuth

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

func (*PasswordAuth) Next

func (p *PasswordAuth) Next(fromServer []byte, more bool) ([]byte, error)

func (*PasswordAuth) Start

func (p *PasswordAuth) Start(server *smtp.ServerInfo) (string, []byte, error)

type Sender

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

func NewSender

func NewSender(host string, port string, sender string, password string) (*Sender, error)

func (*Sender) Send

func (s *Sender) Send(receivers []string, subject string, body []byte) error

Jump to

Keyboard shortcuts

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