1.0.19 • Published 2 years ago

@os-team/sendgrid-mailer v1.0.19

Weekly downloads
5
License
MIT
Repository
gitlab
Last release
2 years 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

2 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago