Documentation
¶
Index ¶
- type Mail
- func (m *Mail) Send(subject string, toName string, toEmail string, content string, ...) error
- func (m *Mail) SendForgotVerificationEmail(toEmail string, v *model.Verification) error
- func (m *Mail) SendVerificationEmail(toEmail string, v *model.Verification) error
- func (m *Mail) SendWithDefaults(subject, toEmail, content string, HTMLContent string) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
Mail provides a mail service implementation
func NewMail ¶
func NewMail(mc *config.MailConfig, sc *config.SiteConfig) *Mail
NewMail generates new Mail variable
func (*Mail) Send ¶
func (m *Mail) Send(subject string, toName string, toEmail string, content string, HTMLContent string) error
Send email with sendgrid
func (*Mail) SendForgotVerificationEmail ¶
func (m *Mail) SendForgotVerificationEmail(toEmail string, v *model.Verification) error
SendForgotVerificationEmail assumes defaults and generates a verification email
func (*Mail) SendVerificationEmail ¶
func (m *Mail) SendVerificationEmail(toEmail string, v *model.Verification) error
SendVerificationEmail assumes defaults and generates a verification email
type Service ¶
type Service interface { Send(subject string, toName string, toEmail string, content string, HTMLContent string) error SendWithDefaults(subject, toEmail, content string, HTMLContent string) error SendVerificationEmail(toEmail string, v *model.Verification) error SendForgotVerificationEmail(toEmail string, v *model.Verification) error }
Service is the interface to access our Mail
Click to show internal directories.
Click to hide internal directories.