email

package
v0.0.0-...-c29c528 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmailHTML

func GetEmailHTML(tmpl *template.Template, body *bytes.Buffer, data any) error

func GetEmailTemplate

func GetEmailTemplate(path string) (*template.Template, error)

Types

type EmailClient

type EmailClient struct {
	*resend.Client
}

func (EmailClient) Send

func (client EmailClient) Send(params any) (any, error)

type Emailer

type Emailer interface {
	Send(params any) (any, error)
}

func NewResendEmailClient

func NewResendEmailClient(apiKey string) Emailer

Jump to

Keyboard shortcuts

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