Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lwnmengjing/queuemail
邮件队列
https://github.com/lwnmengjing/queuemail
golang
Last synced: about 1 month ago
JSON representation
邮件队列
- Host: GitHub
- URL: https://github.com/lwnmengjing/queuemail
- Owner: lwnmengjing
- Created: 2018-10-16T07:38:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T15:44:25.000Z (over 6 years ago)
- Last Synced: 2024-11-12T10:42:05.749Z (3 months ago)
- Topics: golang
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# queueMail
邮件队列### 功能
>
- 支持自定义邮件服务器配置
- 支持smtp安全连接
- 支持附件
- 支持自定义启动端口配置
- 支持多接收人### API
|路由|请求方式|body|参数|说明|
|---:|---:|---:|---:|---:|
|/message|post| json(消息)|见下方说明|加入邮件队列|
|/upload|post| form-data|upload(多文件)|多文件上传接口(用于发送代附件邮件)|
#### body参数说明
```javascript
{
"host": "smtp.qq.com", //smtp服务器地址
"port": 25, //smtp服务器端口
"username": "[email protected]", //发送邮箱用户名
"password": "xxxx", //发送邮箱密码
"attachments": ["/data/filename.text"], //附件在服务器中的路径
"subject": "hello,subject!", //邮件主题
"body": "此处为标题111
此处为正文111!", //邮件内容
"from": {
"email": "[email protected]", //发送者邮箱
"name": "林文祥" //发送人
},
"to": ["[email protected]"], //收件人邮箱
"auth": true //是否是加密连接
}
```### 部署
```shell
./queueMail --port=8080 --filepath=./attachments //port和filepath可根据需求自定义
```