0.2.2 • Published 10 months ago

@mont3ch/mailing v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

mailing

Mailing library layer

HOW TO USE

In this earlier version I'm exposing a class for each integration we have. In order to use the library please:

  1. Download it using npm install @mont3ch/mailing --save
import { Sendgrid } from '@mont3ch/mailing';

const configuration = {
  apiKey: 'my-sendgrid-api-key',
  apiKeyId: 'my-sendgrid-api-key-id'
}

const mailData = {
  to: ['person@xyz.com'],
  from: 'sendgridConfiguredMail@xyz.com',
  subject: 'my subject',
  text: 'my email text'
}
const mail = new Sendgrid(configuration);
try { 
  await mail.sendMail(mailData);

} catch(error){
  console.log('an error ocurred', error);
}
0.2.1

10 months ago

0.2.0

10 months ago

0.2.2

10 months ago

0.1.1

1 year ago

0.1.0

2 years ago