mail

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mail sends outbound email over the shared SMTP relay settings (Settings.Smtp*/EmailSender, edited on the admin UI's Factum > Email tab, projected into util.CommonConfig by util.NewCommonConfig). Extracted from cmd/icinga-notifications, the first consumer, so the web package's password-reset flow can send mail without duplicating this logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(smtp util.CommonConfig, from, to, subject, body string) error

Send sends body (already-rendered HTML) via the shared SMTP relay settings in smtp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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