Documentation
¶
Index ¶
- type Sender
- func (s *Sender) SendLoginCode(ctx context.Context, email, username, code string) error
- func (s *Sender) SendPasswordResetLink(ctx context.Context, email, username, token string) error
- func (s *Sender) SendVerification(ctx context.Context, email, username string, msg core.VerificationMessage) error
- func (s *Sender) SendWelcome(ctx context.Context, email, username string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
APIKey string
FromEmail string
FromName string
AppName string
Client *http.Client
VerificationLinkURL func(token string) string
ResetLinkURL func(token string) string
}
Sender sends emails through Twilio Email API (SendGrid endpoint).
func (*Sender) SendLoginCode ¶
func (*Sender) SendPasswordResetLink ¶
func (*Sender) SendVerification ¶
Click to show internal directories.
Click to hide internal directories.