
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@pixul/nodemailer-sparkpost
Advanced tools
This is a fork of nodemailer-sparkpost-transport.
Lead Maintainer: Daniel Cole
npm install @pixul/nodemailer-sparkpost
const Nodemailer = require('nodemailer');
const SparkPostTransport = require('@pixul/nodemailer-sparkpos');
const Transporter = Nodemailer.createTransport(SparkPostTransport(options));
where:
sparkPostApiKey
- SparkPost API Key. If not provided, it will use the SPARKPOST_API_KEY
env var.endpoint
- The endpoint to use for the SparkPost API requests. If you have a SparkPost EU account, set this to https://api.eu.sparkpost.com
(optional)campaign_id
- Name of the campaign (optional)metadata
- Transmission level metadata containing key/value pairs (optional)options
- JSON object in which transmission options are defined (optional)substitution_data
- Key/value pairs that are provided to the substitution engine (optional)For more information, see the SparkPost API Documentation for Transmissions
transport.sendMail({
from: 'me@here.com',
to: 'you@there.com',
subject: 'Very important stuff',
text: 'Plain text',
html: 'Rich taggery'
}, function(err, info) {
if (err) {
console.log('Error: ' + err);
} else {
console.log('Success: ' + info);
}
});
Read more about Nodemailer's sendMail()
method here.
The SparkPost Nodemailer transport also supports a few SparkPost-specific sendMail()
options in both the transport constructor and the 'sendMail()` method.
Note: sendMail()
options override their constructor counterparts:
campaign_id
- Overrides for constructor optionmetadata
- Override for constructor optionoptions
- Override for constructor optionsubstitution_data
- Override for constructor optionFAQs
SparkPost transport for Nodemailer
The npm package @pixul/nodemailer-sparkpost receives a total of 6 weekly downloads. As such, @pixul/nodemailer-sparkpost popularity was classified as not popular.
We found that @pixul/nodemailer-sparkpost demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.