notifysend

package
v1.131.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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