Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
cloudmailin
Advanced tools
Official Node.js for the CloudMailin Email API - https://www.cloudmailin.com
Weekly downloads
Readme
A Node.JS SDK for CloudMailin written in Typescript for receiving incoming email via JSON HTTP POST.
Please see the Documentation for more details and examples.
You can install the library using NPM.
npm install cloudmailin
We recommend you take a look at our Documentation for a more detailed example but here's a snippet:
import express from "express";
import bodyParser from "body-parser";
import { IncomingMail } from "cloudmailin";
const app = express();
app.use(bodyParser.json());
app.post("/incoming_mails/", (req, res) => {
const mail = <IncomingMail>req.body;
res.status(201).json(mail);
}
import { MessageClient } from "cloudmailin"
const client = new MessageClient({ username: USERNAME, apiKey: API_KEY});
const response = await client.sendMessage({
to: 'test@example.net',
from: 'test@example.com',
plain: 'test message',
html: '<h1>Test Message</h1>',
subject: "hello world"
});
Generating the OpenAPI reference:
npx openapi-typescript ./path_to/api.yaml --output ./src/models/cloudmailin-api.ts
FAQs
Official Node.js for the CloudMailin Email API - https://www.cloudmailin.com
The npm package cloudmailin receives a total of 421 weekly downloads. As such, cloudmailin popularity was classified as not popular.
We found that cloudmailin 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.