email

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 6 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 email is the outbound email notifier: a bus Subscriber that sends each wanted domain event as a plain-text message over SMTP. Notifications only — email is never a capture channel.

Index

Constants

View Source
const SubscriberName = "email"

SubscriberName keys email's outbox rows and cursor.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Cfg config.EmailConfig
	// Password is the resolved SMTP password (empty for no auth).
	Password string
	// UIBase is the deep-link root; empty disables links.
	UIBase string
	// Redact scrubs known secrets from outbound text.
	Redact func(string) string
	// contains filtered or unexported fields
}

Notifier delivers events over SMTP.

func (*Notifier) Deliver

func (n *Notifier) Deliver(ctx context.Context, ev integrations.Event) error

Deliver implements integrations.Subscriber.

func (*Notifier) Name

func (n *Notifier) Name() string

Name implements integrations.Subscriber.

func (*Notifier) Wants

func (n *Notifier) Wants(ev integrations.Event) bool

Wants implements integrations.Subscriber.

Jump to

Keyboard shortcuts

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