command
module
Version:
v0.0.0-...-4a78be1
Opens a new window with list of versions in this module.
Published: Jan 18, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
msg-sender
cfg.json 是纯json格式
{
"debug": true,
"http": {
"listen": "0.0.0.0:4000", //监听ip端口
"allow":["*"],// 填写ip,"*" 代表允许全部
"deny":[]
},
"smtp": {//邮件配置
"address": "smtp.exmail.qq.com:25",//邮件发送服务器地址
"username": "kexirong@example.com",
"password": "123456",
"authtype":"LOGIN"//认证类型/CRAM-MD5/LOGIN/PLAIN,默认PLAIN
},
"wechat":{//企业微信配置
"CorpID":"ww2085a342", //企业ID
"AgentId":1000002,//应用id,通过新建企业微信应用>获取
"Secret":"5WsjwD2DqyR4PMTWnJJp_qvyOothRjDAZs>aKc"//密串,企业微信应用中可以得到
}
}
测试方法
curl -d "to=test@qq.com,test@sina.com&subject=test&content=测试报文体" "http://10.1.1.202:4000/sender/mail"
curl -d "to=kexirong&&content=测试报文体" "http://10.1.1.202:4000/sender/wechat"
echo "# msgsender" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/kexirong/msg-sender.git
git push -u origin master
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.