email

package
v0.0.0-...-f4a649d Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: GPL-3.0 Imports: 8 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
	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