# msg-sender **Repository Path**: Mirway/msg-sender ## Basic Information - **Project Name**: msg-sender - **Description**: wechat - **Primary Language**: Go - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-02 - **Last Updated**: 2021-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # msg-sender - [邮件API](https://github.com/kexirong/msg-sender/blob/master/email/README.md) - [企业微信API](https://github.com/kexirong/msg-sender/blob/master/wechat/README.md) ## cfg.json 是纯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"//密串,企业微信应用中可以得到 > } >} >``` ## 测试方法 >```shell >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" >``` ```git 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 ```