smtp

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

type Sender

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

func New

func New(cfg Config, log *slog.Logger) *Sender

func (*Sender) Send

func (s *Sender) Send(ctx context.Context, to, subject, body string) error

func (*Sender) SendEmailVerification

func (s *Sender) SendEmailVerification(ctx context.Context, to, link string) error

func (*Sender) SendInvite

func (s *Sender) SendInvite(ctx context.Context, to, workspaceName, invitationID string) error

func (*Sender) SendLoginCode

func (s *Sender) SendLoginCode(ctx context.Context, to, code string) error

func (*Sender) SendPasswordReset

func (s *Sender) SendPasswordReset(ctx context.Context, to, link string) error

Jump to

Keyboard shortcuts

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