diff options
Diffstat (limited to 'mailing/mailer.go')
-rw-r--r-- | mailing/mailer.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mailing/mailer.go b/mailing/mailer.go new file mode 100644 index 0000000..c9ab8d0 --- /dev/null +++ b/mailing/mailer.go @@ -0,0 +1,13 @@ +package mailing + +import ( + "github.com/kch42/simpleconf" +) + +// Mailer is a interface that defines the Mail function. +type Mailer interface { + Mail(to, from string, msg []byte) error +} + +// MailerCreator is a function that creates a Mailer instance from config values. +type MailerCreator func(conf simpleconf.Config) (Mailer, error) |