smtp

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(id int, o GeneratorOptions, ctx context.Context, requestrate int, s *stats.Stats) *Generator

func (*Generator) Finish

func (g *Generator) Finish() error

func (*Generator) Init

func (g *Generator) Init() error

func (*Generator) InitDone

func (g *Generator) InitDone() error

func (*Generator) SendMail

func (g *Generator) SendMail(sender, receiver, subject, body string) error

func (*Generator) Tick

func (g *Generator) Tick() error

type GeneratorOptions

type GeneratorOptions struct {
	Target                 string
	Username               string
	Password               string
	From                   string
	To                     string
	Subject                string
	Data                   string
	Plaintext              bool
	Insecure               bool
	TlsServerName          string
	RootCAs                []string
	DisableConnectionReuse bool
}

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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