1.0.19 • Published 12 months ago

@os-team/sendgrid-mailer v1.0.19

Weekly downloads
5
License
MIT
Repository
gitlab
Last release
12 months ago

@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.

1.0.19

12 months ago

1.0.18

1 year ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago