Documentation ¶
Index ¶
- Variables
- type DialAndSender
- type Emailer
- func (e *Emailer) SendEmail(receivers []string, subject string, body string, attachmentFilePath []string) error
- func (e *Emailer) SendEmailWithLimit(receivers []string, subject string, body string, attachmentFilePath []string) error
- func (e *Emailer) SendInviteUserEmail(receivers []string, params map[string]string) error
- func (e *Emailer) SendResetPasswordEmail(receivers []string, params map[string]string) error
- type Params
- type TemplateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRateLimitExceeded = errors.New("rate limit exceeded") ErrNoSMTPHostConfigured = errors.New("no smtp host configured") ErrNoSenderConfigured = errors.New("no sender configured") ErrNoRecipientConfigured = errors.New("no recipient configured") ErrSenderMisconfigured = errors.New("sender misconfigured") )
Functions ¶
This section is empty.
Types ¶
type DialAndSender ¶
type DialAndSender interface {
DialAndSend(m ...*gomail.Message) error
}
type Emailer ¶
type Emailer struct { Params Params Dialer DialAndSender Limiter *rate.Limiter }
func NewEmailer ¶
func (*Emailer) SendEmailWithLimit ¶
func (*Emailer) SendInviteUserEmail ¶
type TemplateParams ¶
type TemplateParams struct {
URL string
}
Click to show internal directories.
Click to hide internal directories.