package smtp

import "git.sr.ht/~pingoo/stdx/email/smtp"

Index

Types

type Mailer

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

Mailer implements the `email.Mailer` interface to send emails using SMTP

func NewMailer

func NewMailer(config email.SMTPConfig) *Mailer

NewMailer returns a new smtp Mailer

func (*Mailer) SendBroadcast

func (mailer *Mailer) SendBroadcast(ctx context.Context, email email.Email) error

TODO

func (*Mailer) SendTransactionnal

func (mailer *Mailer) SendTransactionnal(ctx context.Context, email email.Email) error

Send an email using the SMTP mailer

Source Files

smtp.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
4 months ago

Tools for package owners.