mail

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
	FromName string
}

Mailer holds SMTP configuration for sending emails.

func NewMailer

func NewMailer() *Mailer

NewMailer creates a Mailer from MAIL_* environment variables.

func (*Mailer) Send

func (m *Mailer) Send(to, subject, htmlBody string) error

Send delivers an HTML email to the specified recipient.

Jump to

Keyboard shortcuts

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