email

package
v0.0.0-...-7c24fd4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSMTPClient

func NewSMTPClient(i *do.Injector) (domain.EmailSender, error)

Types

type EmailClient

type EmailClient struct {
	*Smtp
}

func (*EmailClient) SendBindEmailVerification

func (c *EmailClient) SendBindEmailVerification(ctx context.Context, to, username, verifyURL string) error

func (*EmailClient) SendResetPasswordEmail

func (c *EmailClient) SendResetPasswordEmail(ctx context.Context, to, username, resetURL string) error

type Smtp

type Smtp struct {
	// contains filtered or unexported fields
}

func NewSmtp

func NewSmtp(cfg *config.Config) *Smtp

func (*Smtp) Send

func (s *Smtp) Send(subject, receiver, content string) error

Jump to

Keyboard shortcuts

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