smtp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopClient added in v0.6.5

type NoopClient struct{}

func NewNoopClient added in v0.6.5

func NewNoopClient() (*NoopClient, error)

func (*NoopClient) SendEmail added in v0.6.5

func (n *NoopClient) SendEmail(em, sub string, b bytes.Buffer) error

type SMTPClient added in v0.6.5

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

func (*SMTPClient) SendEmail added in v0.6.5

func (s *SMTPClient) SendEmail(emailAddr, subject string, body bytes.Buffer) error

type SmtpClient

type SmtpClient interface {
	SendEmail(emailAddr, subject string, body bytes.Buffer) error
}

func NewClient added in v0.6.5

func NewClient(cfg *config.SMTPConfiguration) (SmtpClient, error)

func NewSMTP added in v0.6.5

func NewSMTP(cfg *config.SMTPConfiguration) (SmtpClient, error)

Jump to

Keyboard shortcuts

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