
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
由于在自动化环境中大量依赖环境变量和命令行参数的行式传参,我想在此基础上去完善一个可发送邮件的命令行工具。主要功能包括:
注:「*」为待开发
usage: smtp-send [-h] [--text TEXT]
[--attachments [ATTACHMENTS [ATTACHMENTS ...]]] --subject
SUBJECT [--recipients RECIPIENTS] [--sender SENDER]
[--smtp-addr SMTP_ADDR] [--smtp-port SMTP_PORT]
[--smtp-user SMTP_USER] [--smtp-password SMTP_PASSWORD]
[--ssl] [--cc CC] [--bcc BCC] [--render RENDER]
[--meta META]
邮件发送工具
optional arguments:
-h, --help show this help message and exit
--text TEXT 正文路径
--attachments [ATTACHMENTS [ATTACHMENTS ...]], -a [ATTACHMENTS [ATTACHMENTS ...]]
附件
--subject SUBJECT, -s SUBJECT
主题
--recipients RECIPIENTS
收件人,多个收件人间用英文逗号分隔
--sender SENDER 发件人
--smtp-addr SMTP_ADDR
SMTP 服务器地址
--smtp-port SMTP_PORT
SMTP 服务器端口
--smtp-user SMTP_USER, -u SMTP_USER
SMTP 用户
--smtp-password SMTP_PASSWORD, -p SMTP_PASSWORD
SMTP 用户密码
--ssl 是否开启ssl
--cc CC 抄送,多个收件人间用英文逗号分隔
--bcc BCC 密送,多个收件人间用英文逗号分隔
--render RENDER 待渲染文件
--meta META 元数据,json格式的文件
注:
--render
和--meta
需同时指定,正文渲染才有效--text
被指定,则正文内容为其所指定项待渲染文件中变量以 jinja2
的格式指定,详见官方文档
示例:
{{ datetime }}
meta 文件格式:
{
"configmaps": {
"datetime": "DATETIME"
}
}
呈现:
假设设置环境变量DATETIME
为2019年11月23日
,那么发送的正文内容就将会是
2019年11月23日
FAQs
We found that smtp-send demonstrated a healthy version release cadence and project activity because the last version was released less than 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 MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.