Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //NONE points a default person NONE = []schema.Person{} )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server string Login string Password string Sender string Path string Fullname string }
Config configures the SMTP-based mailer
type Mailer ¶
type Mailer interface { //Send a mail to all the given person in to with cc'ing persons in cc. //The mail body is created using the given template and data Send(to schema.Person, tpl string, data interface{}, cc ...schema.Person) error }
Mailer is an interface to specify a mail must be send
Click to show internal directories.
Click to hide internal directories.