Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectSMTP ¶
func ConnectSMTP(cfg config.SMTPConfig) (*smtp.Client, error)
ConnectSMTP establishes a persistent, authenticated SMTP client with TLS.
func SendWithClient ¶
SendWithClient formats and delivers the email using an active SMTP client. It uses cfg.SMTP.From as both the envelope sender and header From address.
func SetRetryLimit ¶
func SetRetryLimit(limit int)
SetRetryLimit sets the max retry attempts per failed email, with exponential backoff.
func StartDispatcher ¶
func StartDispatcher(tasks []Task, cfg config.SMTPConfig, concurrency int, batchSize int)
StartDispatcher spawns workers and processes email tasks with retries and batch-mode dispatch.
Types ¶
Click to show internal directories.
Click to hide internal directories.