Socket
Socket
Sign inDemoInstall

@27works/posto

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@27works/posto

``` const EmailHandler = require('@27Works/posto')


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Weekly downloads
 
Created
Source

posto

const EmailHandler = require('@27Works/posto')

const emailConfig = {
  apiKey: sendgrid.apiKey,
  fromAddress,
  fromName,
  sendEmail,
  templatePath: path.join(process.cwd(), templatePath)
}

const emailHandler = new EmailHandler(emailConfig)

const data = {
  to,
  cc,
  template,
  action_url: '/go',
  baseUrl: config.get('global.baseUrl'),
  membership,
  user
}

const emailResponse = await emailHandler.send(data)

const { bcc, cc, from, subject } = emailResponse.originalMessage

FAQs

Package last updated on 10 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc