scaleway

package
v0.0.0-...-0941746 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 6 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 {
	AccessKeyID string
	SecretKey   string
	Region      string
	ProjectID   string
	HttpClient  *http.Client
}

type Mailer

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

Mailer implements the `email.Mailer` interface to send emails using scaleway's API https://developers.scaleway.com/en/products/transactional_email/api https://www.scaleway.com/en/docs/managed-services/transactional-email

func NewMailer

func NewMailer(config Config) (mailer *Mailer, err error)

NewMailer returns a new smtp Mailer

func (*Mailer) SendBroadcast

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

func (*Mailer) SendTransactionnal

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

Jump to

Keyboard shortcuts

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