mail_service

package
v0.0.0-...-0eeeb36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMailService

type IMailService interface {
	Send(*Mail) error
}

type Mail

type Mail struct {
	To       string
	Subject  string
	Body     string
	BodyHTML string
}

type MailService

type MailService struct {
	Dialer          *gomail.Dialer
	From            string
	DefaultTemplate *template.Template
}

func DefaultMailService

func DefaultMailService() *MailService

func (*MailService) Send

func (ms *MailService) Send(mail *Mail) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL