package ses

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

Index

Types

type Config

type Config struct {
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	HttpClient      *http.Client
}

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 Config) (*Mailer, error)

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 SES mailer

Source Files

ses.go

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

Tools for package owners.