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.
@singtone/nodemailer-sendgrid-transport
Advanced tools
Readme
This repository is a nodemailer transport plugin sending email via SendGrid's V3 REST API.
Support SendGrid options such as categories, tracking settings or send_at etc.
Support http, https, socks4 or socks5 proxy via proxy-agent.
axios
Install via npm.
Support SendGrid options of categories, send_at, batch_id, asm, ip_pool_name, mail_settings, tracking_settings
var nodemailer = require('nodemailer');
var sgTransport = require('@singtone/nodemailer-sendgrid-transport');
var proxy = require('proxy-agent'); //optional
var options = {
auth: {
api_key: 'SENDGRID_APIKEY'
},
proxyAgent: proxy(process.env.PROXY) //optional. i.e. https://myproxy.sample.com:8080
}
var mailer = nodemailer.createTransport(sgTransport(options));
var email = {
to: ['john@foo.com', 'smith@bar.com'],
from: 'david@baz.com',
subject: 'Hello World',
text: 'Awesome sauce',
html: '<b>Awesome sauce</b>',
attachments: {
filename: 'text1.txt',
content: 'aGVsbG8gd29ybGQh',
encoding: 'base64'
},
sendGrid: { //optional SendGrid Options
"categories": [
"cake",
"pie",
"baking"
],
"send_at": 1617260400,
"tracking_settings": {
"click_tracking": {
"enable": true,
"enable_text": false
}
}
}
};
mailer.sendMail(email, function(err, res) {
if (err) {
console.log(err)
}
console.log(res);
});
FAQs
A nodemailer transport plugin sending email via SendGrid's V3 REST API; Support SendGrid options such as categories, tracking settings or send_at etc; Support http, https, socks4 or socks5 proxy.
The npm package @singtone/nodemailer-sendgrid-transport receives a total of 4 weekly downloads. As such, @singtone/nodemailer-sendgrid-transport popularity was classified as not popular.
We found that @singtone/nodemailer-sendgrid-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
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.