
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
[](https://travis-ci.org/wodog/tw-mail) [](https://www.npmjs.com/package/tw-mail)
trend wood mail module.
npm install tw-mail
first, you should create config.js.
and then, add some config in it, just like below:
module.exports = {
/**
* mail options
*/
mail_opts: {
host: 'smtp.163.com',
port: 25,
auth: {
user: 'qqq536505032@163.com',
pass: 'qjkujfvdzbyhphzg'
}
}
};
var config = require('config');
var tw-mail = require('tw-mail')(config.mail_opts);
var options = {
email: '536505032@qq.com', // 发送邮箱地址
token: '123456', // token
username: 'wodog99', // 用户名
webname: '测试网站', // 网站名
url: 'http://test.com' // 链接地址
}
// 发送密码重置邮件
tw_mail.sendResetPassMail(options, callback);
// 发送验证发邮件
tw_mail.sendValidateMail(options, callback);
// 发送激活邮件
tw_mail.sendActiveMail(options, callback);
{
accepted: [ '1668665916@qq.com' ],
rejected: [],
response: '250 Ok: queued as ',
envelope: { from: '536505032@qq.com', to: [ '1668665916@qq.com' ] },
messageId: '1451383934958-3e89c2f9-74052b8a-495ae996@qq.com'
}
npm install
npm test
active

validate

passreset

FAQs
[](https://travis-ci.org/wodog/tw-mail) [](https://www.npmjs.com/package/tw-mail)
We found that tw-mail 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.