MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / MailDir

Struct MailDir

pkg/email/dir/dir.go:31–35  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

29
30// MailDir is an email.Sender implementation that writes emails to a directory.
31type MailDir struct {
32 emailConfig email.Config
33 dir string
34 messageSettings []gomail.MessageSetting
35}
36
37// New returns a new email.Sender that writes emails to dir.
38func New(_ context.Context, emailConfig email.Config, dir string) (*MailDir, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected