smtp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CRLF string = "\r\n"
)

Functions

func Main

func Main(host string, port int, userName string, password string, timeout int, from string, queue chan *SMTPData, cancelCtx context.Context, logger *gologger.Logger, wg *sync.WaitGroup)

Types

type SMTPClient

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

func NewSMTPClient

func NewSMTPClient(hostname string, port int, username string, password string, timeout int, from string, logger *logger.Logger) *SMTPClient

type SMTPData

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

func NewSMTPData

func NewSMTPData(recipients []string, subject string) *SMTPData

func (*SMTPData) AddMsg added in v0.1.1

func (s *SMTPData) AddMsg(msg string)

func (*SMTPData) Body

func (s *SMTPData) Body() []byte

Jump to

Keyboard shortcuts

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