notifysend

package
v1.167.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notifysend is the transport layer of the notification substrate: it delivers an already-rendered email over SMTP using the admin-configured connection settings.

It decides nothing about content or scheduling. Settings arrive per call rather than at construction, so an admin change applies to the next send without restarting the worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPSender

type SMTPSender struct{}

SMTPSender implements Sender over SMTP via go-mail. A fresh connection is dialed per send: notification volume is human-scale and a stateless dial keeps credential and TLS changes immediate.

func NewSMTPSender

func NewSMTPSender() *SMTPSender

NewSMTPSender creates the production SMTP sender.

func (*SMTPSender) Send

func (*SMTPSender) Send(ctx context.Context, settings smtp.Settings, email notifyrender.Email) error

Send renders no content itself; it wraps email into a multipart message (plaintext body + HTML alternative) and delivers it.

type Sender

type Sender interface {
	Send(ctx context.Context, settings smtp.Settings, email notifyrender.Email) error
}

Sender delivers one rendered email using the given SMTP settings. Settings are passed per call so admin changes apply to the next send without any worker restart.

Jump to

Keyboard shortcuts

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