
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
This repository contains Node.js SDK to help you integrate with Maileroo's email sending API efficiently and effectively.
Welcome to the official Node.js SDK for Maileroo, a powerful and flexible email sending API. This SDK allows you to easily integrate Maileroo's email sending capabilities into your PHP applications.
npm install maileroo
const { MailerooClient } = require('maileroo');
const apiKey = 'your_api_key';
const mailerooClient = MailerooClient.getClient(apiKey);
await mailerooClient
.setFrom('John Doe', 'john@example.com')
.setTo('Jane Smith', 'jane@example.com')
.setSubject('Hello World!')
.setHtml('<h1>Welcome</h1>')
.setPlain('Welcome')
.sendBasicEmail();
await mailerooClient
.setFrom('John Doe', 'john@example.com')
.setTo('Jane Smith', 'jane@example.com')
.setTemplateId('template_id')
.setTemplateData({ name: 'Jane' })
.sendTemplateEmail();
mailerooClient.addAttachment('./path/to/file.pdf', 'file.pdf', 'application/pdf');
mailerooClient.addInlineAttachment('./path/to/image.png', 'image.png', 'image/png');
await mailerooClient.createContact('list_id', { email: 'jane@example.com', name: 'Jane Smith' });
await mailerooClient.updateContact('list_id', 'jane@example.com', { name: 'Jane Doe' });
await mailerooClient.deleteContact('list_id', 'jane@example.com');
const contact = await mailerooClient.getContact('list_id', 'jane@example.com');
console.log(contact);
const contacts = await mailerooClient.listContacts('list_id', 'query', 1);
console.log(contacts);
The library throws errors if an API request fails. Use try-catch blocks to handle these errors gracefully:
try {
await mailerooClient.sendBasicEmail();
} catch (error) {
console.error(error.message);
}
This library is distributed under the MIT License. Feel free to use and modify it.
FAQs
This repository contains Node.js SDK to help you integrate with Maileroo's email sending API efficiently and effectively.
The npm package maileroo receives a total of 23 weekly downloads. As such, maileroo popularity was classified as not popular.
We found that maileroo 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
/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.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.