Socket
Book a DemoInstallSign in
Socket

@mont3ch/mailing

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mont3ch/mailing

Mailing library layer

latest
Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • 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);
}

FAQs

Package last updated on 22 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts