sendgrid

package
v0.0.0-...-bd8cb29 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogSendErrorAndGetStatusCode

func LogSendErrorAndGetStatusCode(l logrus.FieldLogger, err error) (statusCode int)

Types

type APIError

type APIError struct {
	*rest.Response
}

func (APIError) Error

func (a APIError) Error() string

type Client

type Client struct {
	*sg.Client
}

func New

func New() (*Client, error)

func (*Client) SendEmail

func (c *Client) SendEmail(ctx context.Context, subject, plainTextContent, htmlContent string) error

Jump to

Keyboard shortcuts

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