summaryrefslogtreecommitdiff
path: root/mailing/mailer.go
blob: 32d84d54022aceafd032f6275a1fda29af89d843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package mailing

import (
	"github.com/silvasur/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)