
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@femessage/direct-mail
Advanced tools
阿里云 邮件推送 (DirectMail) Node.js SDK(兼容浏览器端)
支持以下 API
yarn add @femessage/direct-mail
const directMail = require('@femessage/direct-mail')
const singleConfig = {
AccountName: 'yourmail@mail.com',
FromAlias: '化名',
ToAddress: 'toaddress@mail.com',
Subject: '标题',
HtmlBody: '<html>内容</html>',
AccessKeySecret: '',
AccessKeyId: ''
}
directMail
.SingleSendMail(singleConfig)
.then(resp => {})
.catch(err => {})
const directMail = require('@femessage/direct-mail')
const batchConfig = {
AccountName: 'yourmail@mail.com',
ReceiversName: 'defaultReceivers',
TemplateName: 'offer',
AccessKeySecret: '',
AccessKeyId: ''
}
directMail
.BatchSendMail(batchConfig)
.then(resp => {})
.catch(err => {})
AccessKeyId、AccessKeySecret 也可以通过环境来设置。
推荐使用dotenv
#.env
ACCESS_KEY_ID=
ACCESS_KEY_SECRET=
则可以在调用时,不用传 AccessKeyId、AccessKeySecret
const config = {
AccountName: 'yourmail@mail.com',
FromAlias: '化名',
ToAddress: 'toaddress@mail.com',
Subject: '标题',
HtmlBody: '<html>内容</html>'
}
directMail
.SingleSendMail(config)
.then(resp => {})
.catch(err => {})
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
thanks to Mttylzq
FAQs
send Aliyun DirectMail with Node.js
We found that @femessage/direct-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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.