Help us shape the future of Go! Take the 2026 Go Developer Survey

emailtwilio

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 New

func New(apiKey, fromEmail, fromName, appName string) *Sender

func (*Sender) SendLoginCode

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 (*Sender) SendVerification

func (s *Sender) SendVerification(ctx context.Context, email, username string, msg core.VerificationMessage) error

func (*Sender) SendWelcome

func (s *Sender) SendWelcome(ctx context.Context, email, username string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL