mailer

package
v0.0.0-...-3056464 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

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

func New

func New(cfg *config.Config) *Mailer

func (*Mailer) Send

func (m *Mailer) Send(ctx context.Context, to, subject, body string) error

Send envia um email com suporte a context para timeout/cancelamento

func (*Mailer) SendLegacy

func (m *Mailer) SendLegacy(to, subject, body string) error

SendLegacy é uma versão legacy sem context para compatibilidade Deprecated: Use Send(ctx, to, subject, body) instead

func (*Mailer) SendWithTimeout

func (m *Mailer) SendWithTimeout(to, subject, body string, timeout time.Duration) error

SendWithTimeout envia um email com timeout específico

Jump to

Keyboard shortcuts

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