email

package
v0.0.0-...-1331400 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

func SendMail

func SendMail(config SMTPConfig, message EmailMessage, transport *http.Transport) error

Types

type EmailMessage

type EmailMessage struct {
	Subject string
	Body    string
	IsHTML  bool
}

type SMTPConfig

type SMTPConfig struct {
	Host       string
	Port       int
	Sender     string
	Username   string
	Password   string
	From       string
	Encryption string
	Recipient  string
}

Jump to

Keyboard shortcuts

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