method SendGridProvider.prototype.send
SendGridProvider.prototype.send(message: OutgoingMail): Promise<void>

Sends a message via the SendGrid v3 API.

Parameters

The outgoing mail

Return Type

Promise<void>

Throws

Error

On any non-2xx HTTP response

Usage

import { SendGridProvider } from "mail-plugin/src/index.ts";