Documentation ¶
Index ¶
- func NewEmailService(ess model.EmailServiceSettings, templater *model.EmailTemplater) (model.EmailService, error)
- type EmailService
- func (es *EmailService) SendHTML(subject, html, recipient string) error
- func (es *EmailService) SendInviteEmail(subject, recipient string, data interface{}) error
- func (es *EmailService) SendMessage(subject, body, recipient string) error
- func (es *EmailService) SendResetEmail(subject, recipient string, data interface{}) error
- func (es *EmailService) SendTFAEmail(subject, recipient string, data interface{}) error
- func (es *EmailService) SendTemplateEmail(subject, recipient string, template *template.Template, data interface{}) error
- func (es *EmailService) SendVerifyEmail(subject, recipient string, data interface{}) error
- func (es *EmailService) SendWelcomeEmail(subject, recipient string, data interface{}) error
- func (es *EmailService) Templater() *model.EmailTemplater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmailService ¶
func NewEmailService(ess model.EmailServiceSettings, templater *model.EmailTemplater) (model.EmailService, error)
NewEmailService creates new email service.
Types ¶
type EmailService ¶
type EmailService struct { Sender string // contains filtered or unexported fields }
EmailService sends email with Amazon Simple Email Service.
func (*EmailService) SendHTML ¶
func (es *EmailService) SendHTML(subject, html, recipient string) error
SendHTML sends email with html.
func (*EmailService) SendInviteEmail ¶
func (es *EmailService) SendInviteEmail(subject, recipient string, data interface{}) error
SendInviteEmail sends invite email to the recipient.
func (*EmailService) SendMessage ¶
func (es *EmailService) SendMessage(subject, body, recipient string) error
SendMessage sends email with plain text.
func (*EmailService) SendResetEmail ¶
func (es *EmailService) SendResetEmail(subject, recipient string, data interface{}) error
SendResetEmail sends reset password emails.
func (*EmailService) SendTFAEmail ¶
func (es *EmailService) SendTFAEmail(subject, recipient string, data interface{}) error
SendTFAEmail sends emails with one-time password.
func (*EmailService) SendTemplateEmail ¶
func (es *EmailService) SendTemplateEmail(subject, recipient string, template *template.Template, data interface{}) error
SendTemplateEmail applies html template to the specified data and sends it in an email.
func (*EmailService) SendVerifyEmail ¶
func (es *EmailService) SendVerifyEmail(subject, recipient string, data interface{}) error
SendVerifyEmail sends email address verification emails.
func (*EmailService) SendWelcomeEmail ¶
func (es *EmailService) SendWelcomeEmail(subject, recipient string, data interface{}) error
SendWelcomeEmail sends welcoming emails.
func (*EmailService) Templater ¶
func (es *EmailService) Templater() *model.EmailTemplater
Templater returns email service templater.
Click to show internal directories.
Click to hide internal directories.