email

package
v0.0.0-...-3c236ea Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SmtpSendMail = smtp.SendMail

Functions

This section is empty.

Types

type Email

type Email struct {
	// contains filtered or unexported fields
}

func New

func New(host, port, identity, username, password string) *Email

func (*Email) SendMail

func (email *Email) SendMail(
	from string,
	to []string,
	subject string,
	body EmailBody,
) error

type EmailBody

type EmailBody struct {
	Template string
	Data     map[string]any
}

type EmailSender

type EmailSender interface {
	SendMail(from string, to []string, subject string, body EmailBody) error
}

Jump to

Keyboard shortcuts

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