Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@notifications-system/transport-mailer
Advanced tools
Readme
Nodemailer transport for Notifications System
npm i @notifications-system/transport-mailer
import { IOriginalData, MemoryStorage, NotificationQueueManager, NotificationService } from '@notifications-system/core';
import { MailDataProvider, SmtpTransport, TRANSPORT_SMTP } from '@notifications-system/transport-mailer';
let service: NotificationService;
async function main() {
// Instantiate Notification Service
service = new NotificationService(
await new MemoryStorage().initialize(),
[
new SmtpTransport({
options: {
host: process.env.MAIL_HOST,
port: Number(process.env.MAIL_PORT) || undefined,
auth: {
user: process.env.MAIL_USER,
pass: process.env.MAIL_PASS,
},
},
defaults: {
from: process.env.MAIL_FROM,
},
// MailDataProvider - IDataProvider implementation to transform data from `IOriginalData` format to transport specific `IMailData` format
}, new MailDataProvider()),
// ...,
// new TRANSPORT_XXXX(),
],
);
new NotificationQueueManager(service).queueStart();
// Sample usage
const data: IOriginalData = { recipient: 'user@mail.test', payload: 'Test Notification' };
service.send([TRANSPORT_SMTP/*, TRANSPORT_XXXX*/], data);
}
FAQs
Mail transport for Notifications System
We found that @notifications-system/transport-mailer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.