package console

import "git.sr.ht/~pingoo/stdx/email/console"

Index

Types

type Mailer

type Mailer struct {
}

Mailer implements the `email.Mailer` interface to print emails to console

func NewMailer

func NewMailer() *Mailer

NewMailer returns a new console Mailer

func (*Mailer) SendBroadcast

func (mailer *Mailer) SendBroadcast(ctx context.Context, email email.Email) error

func (*Mailer) SendTransactionnal

func (mailer *Mailer) SendTransactionnal(ctx context.Context, email email.Email) error

Send an email using the console mailer

Source Files

console.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
4 months ago

Tools for package owners.