
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
blastengine
Advanced tools
blastengine is developer friendly email distribution service.
npm i blastengine
import { BlastEngine, Transaction, Bulk } from 'blastengine';
// or
const { BlastEngine, Transaction, Bulk } = require('blastengine');
new BlastEngine(config.userId, config.apiKey);
const mail = new Mail;
mail
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
// Add to
.addTo('user1@example.com', {name: 'User1', code: 'code1'})
.addTo('user2@example.com', {name: 'User2', code: 'code2'})
// Add cc
.addCc('cc1@example.com')
.addCc('cc2@example.com')
// Add bcc
.addBcc('bcc1@example.com')
.addBcc('bcc2@example.com')
// Add attachment
.addAttachment('file.png')
.addAttachment('another.png')
// Set body
.setText('Content of email __name__, __code__')
.setHtml('<h1>Content of email<h1> <p>__name__, __code__</p>');
await mail.send();
await mail.send(new Date('2021-08-01 00:00:00'));
const transaction = new Transaction;
const res = await transaction
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setTo(config.to)
.setText('Content of email')
.setHtml('<h1>Content of email')
.send();
console.log(res);
// { delivery_id: 22 }
const transaction = new Transaction;
const res = await transaction
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setTo(config.to)
.addAttachment('file.png')
.addAttachment('another.png')
.setText('Content of email')
.setHtml('<h1>Content of email')
.send();
console.log(res);
// { delivery_id: 22 }
const bulk = new Bluk;
bulk
.setFrom(config.from.email, config.from.name)
.setSubject('Test subject')
.setText('メールの本文 __code1__');
const res = await bulk.register();
console.log(res);
// { delivery_id: 22 }
bulk.addTo('test1@example.jp', {key: '__code1__', value: 'value!'});
bulk.addTo('test2@example.jp', {key: '__code1__', value: 'value2!'});
const updateRes = await bulk.update();
console.log(updateRes);
// { delivery_id: 22 }
const job = await bulk.import(path.resolve('./path/to/csv.csv'));
while (job.finished()) {
await job.get();
await new Promise((resolve) => setTimeout(resolve, 1000));
}
const zipBlob = await job.download();
// or
await job.download(path.resolve('./tests/result.zip'));
const sendRes = await bulk.send();
console.log(sendRes);
// { delivery_id: 22 }
const deleteRes = await bulk.delete();
// { delivery_id: 22 }
const usages = await Usage.get(3);
const usage = usages[0];
usage.month // -> 202208
usage.current // -> 44
usage.remaining // -> 9956
usage.update_time // -> undefined
usage.plan_id // -> 'be-plan-10000
const usages = await Usage.get(3);
const usage = usages[0];
await usage.get();
const usage = await Usage.getLatest();
Change from Superagent to node-fetch.
MIT.
FAQs
blastengine is developer friendly email distribution service.
The npm package blastengine receives a total of 134 weekly downloads. As such, blastengine popularity was classified as not popular.
We found that blastengine demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.