emailclient

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCouldNotSend  = errors.New("could not send mail")
	ErrNotAuthorized = errors.New("Unauthorized")
)

Functions

This section is empty.

Types

type AwsSimpleEmailService

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

func NewSESClient

func NewSESClient() AwsSimpleEmailService

type EmailClient

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

func NewEmail

func NewEmail(
	client emailer,

) EmailClient

func (*EmailClient) Send

func (e *EmailClient) Send(
	ctx context.Context,
	to,
	from,
	subject,
	htmlVersion,
	textVersion string,
) error

type EmailPayload

type EmailPayload struct {
	To       string
	From     string
	Subject  string
	HtmlBody string
	TextBody string
}

type Postmark

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

func NewPostmarkClient

func NewPostmarkClient(token string) Postmark

Jump to

Keyboard shortcuts

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