
Security News
Node.js TSC Declines to Endorse Feature Bounty Program
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
smtp2go-nodejs
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
This library provides a simple way to send email via the SMTP2GO API and also access other endpoints in the API in a standard way.
npm i smtp2go-nodejs
import SMTP2GOApi from 'smtp2go-nodejs';
const api = SMTP2GOApi(process.env.APIKEY);
const mailService = api.mail()
.to({ email: 'to@address.dev',name:"Optional Name" })
.cc({ email: 'cc@address.dev' })
.from({ email: 'from@address.dev' })
.subject('Testing')
.html(`<h1>Hello World</h1>
<img src="cid:a-cat"/>
<p>This is a test html email!</p>`)
.attach(require('path').resolve(__dirname, './files/test.txt'))
.inline('a-cat', require('path').resolve(__dirname, './files/cat.jpg'));
api.client().consume(mailService);
import SMTP2GOApi from 'smtp2go-nodejs';
require('dotenv').config();
const api = SMTP2GOApi(process.env.APIKEY);
const mailService = api.mail()
.to({ email: process.env.TO_EMAIL, name: "Recipient" })
.from({ email: process.env.FROM_EMAIL, name: "Sender" })
.subject('Testing')
.template("6040276", new Map([
["username", "Steve"],
["product_name", "Widgets"],
["action_url", "https://website.localhost"],
["login_url", "https://website.localhost/login"],
["guide_url", "https://website.localhost/guide"],
["support_email", "support@test"],
["sender_name", "Bob Widgets"]
]));
const res = api.client().consume(mailService);
FAQs
NodeJS Library for interacting with the SMTP2GO API
The npm package smtp2go-nodejs receives a total of 227 weekly downloads. As such, smtp2go-nodejs popularity was classified as not popular.
We found that smtp2go-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.