msg-sender

command module
v0.0.0-...-4a78be1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL