mailer

package
v0.0.0-...-683b713 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	To       string
	Subject  string
	HTMLBody string
	ReplyTo  *string
}

Email represents an email message that's sent to a destination user.

type Mailer

type Mailer interface {
	SendEmail(ctx context.Context, email Email) error
}

Mailer is an interface that defines the methods required to send an email.

type PostmarkMailer

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

PostmarkMailer is a mailer that sends emails using the Postmark service.

func NewPostmark

func NewPostmark(cfg *global.Config) *PostmarkMailer

NewPostmark makes a new Postmark mailer using the given configuration.

func (*PostmarkMailer) SendEmail

func (pm *PostmarkMailer) SendEmail(ctx context.Context, email Email) error

Jump to

Keyboard shortcuts

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