email

package
v0.0.0-...-db40113 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package email provides a simple SMTP email sender with an optional stub mode for development.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

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

Sender sends emails. When cfg.Stub is true it only logs; real SMTP is used otherwise.

func New

func New(cfg config.EmailConfig, logger *log.LoggerWrapper) *Sender

New returns a Sender configured from cfg.

func (*Sender) Send

func (s *Sender) Send(to, subject, body string) error

Send sends (or logs) a plain-text email.

Jump to

Keyboard shortcuts

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