MailDir is an email.Sender implementation that writes emails to a directory.
| 29 | |
| 30 | // MailDir is an email.Sender implementation that writes emails to a directory. |
| 31 | type 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. |
| 38 | func New(_ context.Context, emailConfig email.Config, dir string) (*MailDir, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected