smtp

package
v0.0.0-...-264fe26 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPTransport

type SMTPTransport struct {
	Username string
	Password string
	Host     string
	Port     int
	Headers  map[string]string

	Logger     logr.Logger
	CtxRqIDKey interface{}
}

func (*SMTPTransport) Send

func (t *SMTPTransport) Send(ctx context.Context, msg, receiver string) error

Send By default only "From" and "To" headers will be added to the email Any other headers including "Subject" should be configured With SMTPTransport.Headers field

Jump to

Keyboard shortcuts

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