mailutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config *Config)

func Send

func Send(subject string, body string) error

Send sends an email if SMTP is enabled.

Types

type Config

type Config struct {
	SendToStdErr bool

	Enabled     func() bool
	Host        func() string
	Port        func() string
	User        func() string
	Pass        func() string
	FromAddress func() string
	ToAddress   func() string
	FromHeader  func() string
	ToHeader    func() string
}

type Func

type Func func(string, smtp.Auth, string, []string, []byte) error

Jump to

Keyboard shortcuts

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