mailsmtp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
	TLS      bool
	From     string
}

Config holds SMTP transport settings.

type Sender

type Sender struct {
	Cfg Config
}

Sender delivers mail over SMTP.

func (Sender) Send

func (s Sender) Send(ctx context.Context, msg mail.Message) error

Jump to

Keyboard shortcuts

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