smtp

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMail added in v1.31.1

func SendMail(addr, host string, auth smtp.Auth, from string, to []string, body []byte) error

Types

type Config

type Config struct {
	Address  string
	Username string
	Password string
	Host     string
}

func Flags

func Flags(fs *flag.FlagSet, prefix string) *Config

type Service added in v1.32.4

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

func New

func New(config *Config, meterProvider metric.MeterProvider, tracerProvider trace.TracerProvider) Service

func (Service) Send added in v1.32.4

func (s Service) Send(ctx context.Context, mail model.Mail) error

Jump to

Keyboard shortcuts

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