email

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package email provides email notification drivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDriver added in v1.10.0

type FileDriver struct{}

FileDriver writes each email to a directory as an .eml file instead of sending it, for local development. Any mail client opens the files. They hold whole messages, sign-in links included, so the directory and files are readable by their owner only.

func (*FileDriver) Channel added in v1.10.0

func (d *FileDriver) Channel() string

func (*FileDriver) Fields added in v1.10.0

func (d *FileDriver) Fields() []driver.Field

Fields describes what the file driver reads.

func (*FileDriver) Name added in v1.10.0

func (d *FileDriver) Name() string

func (*FileDriver) Send added in v1.10.0

func (*FileDriver) Validate added in v1.10.0

func (d *FileDriver) Validate(credentials, settings map[string]string) error

type ResendDriver

type ResendDriver struct{}

ResendDriver delivers email via the Resend HTTP API.

func (*ResendDriver) Channel

func (d *ResendDriver) Channel() string

func (*ResendDriver) Fields

func (d *ResendDriver) Fields() []driver.Field

Fields describes what the Resend driver reads.

func (*ResendDriver) Name

func (d *ResendDriver) Name() string

func (*ResendDriver) Send

func (*ResendDriver) Validate

func (d *ResendDriver) Validate(credentials, _ map[string]string) error

type SMTPDriver

type SMTPDriver struct{}

SMTPDriver delivers email via standard SMTP.

func (*SMTPDriver) Channel

func (d *SMTPDriver) Channel() string

func (*SMTPDriver) Fields

func (d *SMTPDriver) Fields() []driver.Field

Fields describes what the SMTP driver reads.

func (*SMTPDriver) Name

func (d *SMTPDriver) Name() string

func (*SMTPDriver) Send

func (*SMTPDriver) Validate

func (d *SMTPDriver) Validate(credentials, _ map[string]string) error

Jump to

Keyboard shortcuts

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