Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailService ¶
type MailService interface {
NewMail(from string, to string, subject string, body string, data *MailData) *Mail
SendMail(mailreq *Mail) error
}
Sendgrid interface
type SGMailService ¶
Sendgrid implementation of mailservice
func NewSGMailService ¶
func NewSGMailService(logger log.Logger) *SGMailService
Returns a new instance of SGMailService
func (*SGMailService) NewMail ¶
func (ms *SGMailService) NewMail(from string, to string, subject, body string, data *MailData) *Mail
NewMail returns a new mail request
func (*SGMailService) SendMail ¶
func (ms *SGMailService) SendMail(mailReq *Mail) error
CreateMail takes in mail request, and constructs a sendgrid mail type
Click to show internal directories.
Click to hide internal directories.