summaryrefslogtreecommitdiff
path: root/mailing/mailer.go
blob: c9ab8d05d47bd319e5306d5e7a8cb2d48f609953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)