stdxgit.sr.ht/~pingoo/stdx/email/postmark Index | Files

package postmark

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

Index

Types

type Config

type Config struct {
	AccountApiToken string
	ServerApiToken  string
	HttpClient      *http.Client
}

type Mailer

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

Mailer implements the `email.Mailer` interface to send emails using postmarkapp.com's API https://postmarkapp.com/developer/api/overview

func NewMailer

func NewMailer(config Config) *Mailer

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

Source Files

postmark.go

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

Tools for package owners.