
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@atlas.js/nodemailer
Advanced tools
A nodemailer-based mailing service for @atlas.js.
npm i @atlas.js/nodemailer
import { Atlas } from '@atlas.js/atlas'
import * as Nodemailer from '@atlas.js/nodemailer'
const atlas = new Atlas({
config: {
services: {
email: {
// The transport module to be used
transport: require('nodemailer-ses-transport'),
// Alternatively, just pass the module's name
transport: 'nodemailer-ses-transport',
// These options are passed to the transport module unmodified, so go
// read the transport's docs as to what you can set here!
options: {},
// An array of plugins to add to nodemailer
plugins: [{
// Nodemailer's event to which the plugin should be added
event: 'compile',
// The plugin module to use
plugin: require('nodemailer-html-to-text'),
// Alternatively, just pass the module's name
plugin: 'nodemailer-html-to-text',
// These options are passed directly to the plugin function
options: {},
}]
}
}
}
})
atlas.service('email', Nodemailer.Service)
await atlas.start()
// The email service is now available here:
atlas.services.email
In addition to having the standard, callback-based sendMail()
function available, you can use a custom async send()
method:
await atlas.services.email.send({ to: 'test@example.com' })
See the LICENSE file for information.
FAQs
A nodemailer-based mailing service for @atlas.js
We found that @atlas.js/nodemailer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.