mail

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: AGPL-3.0 Imports: 4 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 ParseRecipients added in v1.3.0

func ParseRecipients(raw string) []string

ParseRecipients splits textarea content into addresses, one per line and/or comma-separated within a line. Blank pieces are dropped. Repeated addresses are kept once, compared case-insensitively.

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