Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
nodemailer-unione-transport
Advanced tools
Readme
nodemailer - это самый популярный node.js модуль для рассылки Email. А это transport-плагин, который позволят nodemailer'у отправлять письма через сервис почтовых рассылок UniOne. Сервис позволит вам не только осуществлять массовую рассылку без риска попасть в черный список SMTP, но и отслеживать доставку ваших писем.
var nodemailer = require('nodemailer');
var unione = require('unione-transport');
var options = {
auth: {
api_key: 'Уникальный API-ключ пользователя UniOne',
username: 'Логин пользователя в системе'
}
}
var nodemailerUnione = unione.createTransport(options);
nodemailerUnione.sendMail({
from_email: 'myemail@example.com', //Обратные адреса нужно зарегистрировать и подтвердить в Личном кабинете, или через API
from_name: 'John Dow', //Необязательный параметр
recipients: [ //До 500 адрессатов
{
"email": "some_email@domain.com"
"substitutions": //Необязательный параметр
{
"userName": "Ivan",
"to_name": "Ivan Petrov"
}
},
{
"email": "other_email@domain.com"
"substitutions":
{
"userName": "Nina",
"to_name": "Nina Pavlova"
}
}
],
subject: '{{userName}}, you are awesome!', //Всесто {{userName}} подставится строка из substitutions
body:
{
"html": "<b>Hello, {{userName}}</b>", //Должен присутствовать хотя бы один из параметров
"plaintext": "Hello, {{userName}}"
},
metadata: //Необязательный параметр
{
"mailId" : "3423452345234234" //Эти параметры будут переданы в Webhook
}
}, function (err, info) {
if (err) {
console.log('Error: ' + err);
}
else {
console.log('Response: ' + info);
}
});
FAQs
A transport module to use with nodemailer to leverage UniOne's REST API (http://www.unisender.com/?a=opencart)
The npm package nodemailer-unione-transport receives a total of 35 weekly downloads. As such, nodemailer-unione-transport popularity was classified as not popular.
We found that nodemailer-unione-transport 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.