
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
mdc-email-smtp
Advanced tools
Message Distributing Center (MDC) 专用邮件适配器。
$ npm install --save mdc-email-smtp
在 MDC 配置文件中做好配置,如:
{
...,
"pubsub": {
...,
"consumerAdapters": [{
"queueName": "SPECIFY_A_NAME",
"require": "mdc-email-smtp",
// 其它 mdc-email-smtp 参数
...
}]
}
}
其中其它 mdc-email-smtp 参数列表直接使用 nodemailer 创建 Transporter 的参数。如:
...,
"consumerAdapters": [{
"queueName": "SPECIFY_A_NAME",
"require": "mdc-email-smtp",
"host": "smtp.gmail.com",
"port": 587,
"secure": false,
"auth": {
"user": "user@gmail.com",
"pass": "pass"
}
}]
做好配置之后在 MDC 中直接启动消费者端即可。
如果需要添加默认模板文件,则直接在配置项中添加 "defaultTemplate"
字段即可,其对应的值就是默认模板文件名,格式为 EJS.
在生产者端生产消息的时候,注意使用这样的消息格式:
{
"from": "发件者,格式如 NAME <MAIL@DOMAIN>",
"to": "收件者列表,逗号分隔",
"subject": "邮件标题",
"var": {
// 这是一个对象,里面各值用于填充 EJS 模板
},
"template": "可选项,模板文件,不传则用配置的 defaultTemplate"
}
XadillaX 死月 http://xcoder.in/
shadow88sky 徐晨
FAQs
Email adapter for MDC.
The npm package mdc-email-smtp receives a total of 1 weekly downloads. As such, mdc-email-smtp popularity was classified as not popular.
We found that mdc-email-smtp 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.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.