smtp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new SMTP notification adapter.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter implements port.NotificationProvider using SMTP.

func (*Adapter) Send

func (a *Adapter) Send(ctx context.Context, req *port.NotificationRequest) error

Send sends an email via SMTP.

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string //nolint:gosec
	From     string
}

Config holds SMTP connection configuration.

Jump to

Keyboard shortcuts

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