mail

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attach

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

func SetAttach

func SetAttach(name, contentType string, withFile bool) *Attach

type Mail

type Mail interface {
	Auth()
	Send(m *Message) error
}

type Message

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

func SetMessage

func SetMessage(from string, to, cc, bcc []string, subject, body, contentType string, attachment *Attach) *Message

type SendMail

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

func NewSendMail

func NewSendMail(host, port, username, password string) *SendMail

func (*SendMail) Auth

func (sm *SendMail) Auth()

func (*SendMail) Send

func (sm *SendMail) Send(m *Message) error

Jump to

Keyboard shortcuts

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