Documentation ¶ Index ¶ type Service func New(cfg config.Mail) Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Service ¶ type Service interface { // Send sends a mail to recipients // the body can be html also Send(string, string, ...string) error UpdateConfig(config.Mail) } Service is the interface which mail sender should implement func New ¶ func New(cfg config.Mail) Service New creates and returns a new Service Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.