dir

package
v3.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailDir

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

MailDir is an email.Sender implementation that writes emails to a directory.

func New

func New(_ context.Context, emailConfig email.Config, dir string) (*MailDir, error)

New returns a new email.Sender that writes emails to dir.

func (*MailDir) Send

func (md *MailDir) Send(message *email.Message) (err error)

Send implements email.Sender.

Jump to

Keyboard shortcuts

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