
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
think-mailer
Advanced tools
Thinkjs mailer adapter
Development based on nodemailer
yarn add think-mailer --save
#npm install think-mailer --save
#cnpm install think-mailer --save
exports.mailer = {
type: 'mailer',
mailer: {
host: 'smtp.xxx.com',
port: 465,
secure: true,
auth: {
user: 'xxx@xxx.com', // your account
pass: 'JfoBrEMBYkzhvzRB' // authorization code, not the email password
},
tls: {
rejectUnauthorized: false
}
}
};
const view = require('think-view');
const cache = require('think-cache');
const session = require('think-session');
const mongo = require('think-mongo');
const email = require('think-mailer');
module.exports = [view, mongo(think.app), cache, session, email(think.app)];
const Base = require('./base.js');
module.exports = class extends Base {
indexAction() {
const ctx = this
const mailer = ctx.mailer()
return mailer.send({
from: 'xxx@xxx.com',
to: 'xxx@xxx.com',
subject: 'Email Tile',
html: '<p>Email content</p>'
})
.then(async function(res) {
return ctx.success({
msg: 'Email Sent.'
})
})
.catch(function(err) {
console.log(err)
return ctx.fail(1000, 'Email send failed.')
})
}
};
FAQs
Mailer adaper
The npm package think-mailer receives a total of 0 weekly downloads. As such, think-mailer popularity was classified as not popular.
We found that think-mailer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.