48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
|
|
{
|
|||
|
|
"email": {
|
|||
|
|
"type": "email",
|
|||
|
|
"enabled": true,
|
|||
|
|
"config": {
|
|||
|
|
"smtp": {
|
|||
|
|
"host": "smtp.gmail.com",
|
|||
|
|
"port": 587,
|
|||
|
|
"secure": false,
|
|||
|
|
"auth": {
|
|||
|
|
"user": "your-email@gmail.com",
|
|||
|
|
"pass": "your-app-password"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"imap": {
|
|||
|
|
"host": "imap.gmail.com",
|
|||
|
|
"port": 993,
|
|||
|
|
"secure": true,
|
|||
|
|
"auth": {
|
|||
|
|
"user": "your-email@gmail.com",
|
|||
|
|
"pass": "your-app-password"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"from": "TaskPing <your-email@gmail.com>",
|
|||
|
|
"to": "your-email@gmail.com",
|
|||
|
|
"template": {
|
|||
|
|
"checkInterval": 30
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# 邮件配置说明
|
|||
|
|
#
|
|||
|
|
# Gmail 配置示例:
|
|||
|
|
# 1. 启用两步验证
|
|||
|
|
# 2. 生成应用密码(16位)
|
|||
|
|
# 3. 替换上面的 your-email@gmail.com 和 your-app-password
|
|||
|
|
#
|
|||
|
|
# 其他邮箱提供商:
|
|||
|
|
# QQ邮箱: smtp.qq.com (587) / imap.qq.com (993)
|
|||
|
|
# 163邮箱: smtp.163.com (587) / imap.163.com (993)
|
|||
|
|
# Outlook: smtp.live.com (587) / imap-mail.outlook.com (993)
|
|||
|
|
#
|
|||
|
|
# 配置完成后:
|
|||
|
|
# 1. 复制email部分到 config/channels.json
|
|||
|
|
# 2. 运行: taskping test
|
|||
|
|
# 3. 运行: taskping relay start
|