mailer

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(config Config, to, subject, body, filename string,
	attachment []byte) error

func SendVerificationCode

func SendVerificationCode(config Config, to, verifyURL string) error

func ValidateAddress

func ValidateAddress(email string) bool

ValidateAddress will return true if the email address appears to be valid.

Types

type Config

type Config struct {
	Disable     bool   `yaml:"disable"`
	FromAddress string `yaml:"from_address"`
	Server      string `yaml:"server"`
	Port        int    `yaml:"port"`
	Username    string `yaml:"username"`
	Password    string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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