mail

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigCheck

func ConfigCheck(host string, port uint, username string, password string, tlsConfig *tls.Config) (checkRes string)

ConfigCheck dials and authenticates to an SMTP server.

func Healthcheck

func Healthcheck(ctx context.Context) error

Healtcheck for (global) scheduler

func IsValidAddress

func IsValidAddress(addr string) bool

func IsValidHost

func IsValidHost(host string) bool

func New

func New() *gomail.Message

func Send

func Send(message *gomail.Message, dd ...Dialer) (err error)

Send message with SMTP dialer

func SetupDialer

func SetupDialer(host string, port int, user, pass, from string, ff ...applyCfg)

SetupDialer setups SMTP dialer

Host variable can contain "<host>:<port>" that will override port value

Types

type Dialer

type Dialer interface {
	DialAndSend(...*gomail.Message) error
}

Jump to

Keyboard shortcuts

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