resend

package
v0.0.0-...-1649e63 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 Client

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

Client is a thin wrapper around resend's SDK which will add context support to the existing signature call.

func NewClient

func NewClient(from, token string) *Client

NewClient constructs new Resend client with provided token.

func (*Client) Send

func (c *Client) Send(ctx context.Context, m mail.Mail) error

Send method initiates a call to the resend API using bult-in resend's SDK. Blocks until call is finished, or error is raised, or context is done.

Jump to

Keyboard shortcuts

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