mail

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mail renders and delivers calm, multipart Afterwords email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(name string, data TemplateData) (string, string, error)

Render renders matching HTML and plain-text templates.

Types

type Sender

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

Sender drains the SQLite outbox and retries transient failures.

func NewSender

func NewSender(s *store.Store, host string, port int, username, password, from, tlsPolicy string, logger *slog.Logger) (*Sender, error)

func (*Sender) Run

func (s *Sender) Run(ctx context.Context)

Run polls until context cancellation.

type TemplateData

type TemplateData struct {
	OwnerEmail    string
	RecipientName string
	TrusteeName   string
	SwitchName    string
	Deadline      string
	CheckinURL    string
	ReleaseURL    string
	KitURL        string
	DaysOverdue   int
	Test          bool
}

TemplateData is intentionally limited to non-secret email content.

Jump to

Keyboard shortcuts

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