This package has been deprecated

Author message:

No longer supported

@os-team/sendgrid-mailer
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

@os-team/sendgrid-mailer NPM version BundlePhobia

The wrapper of the @sendgrid/mail which allows to set the shared mail data.

Usage

Step 1. Install the package

Install the package using the following command:

yarn add @os-team/sendgrid-mailer

Step 2. Create an instance of SendGridMailer

The shared mail data will be used when sending each email.

const mailer = new SendGridMailer({
  apiKey: process.env.SENDGRID_API_KEY,
  from: 'Company <mg@m.domain.com>',
  replyTo: 'support@domain.com',
});

Step 3. Send an email

await mailer.send({
  to: 'user@domain.com',
  subject: 'Subject',
  text: 'Message',
});

See about sending emails in the SendGrid documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @os-team/sendgrid-mailer

Weekly Downloads

0

Version

1.0.19

License

MIT

Unpacked Size

7.87 kB

Total Files

8

Last publish

Collaborators

  • oxilor