|
il y a 5 heures | |
---|---|---|
bin | il y a 6 mois | |
config | il y a 5 heures | |
data | il y a 5 heures | |
docs | il y a 5 heures | |
migrations | il y a 1 jour | |
models | il y a 1 jour | |
public | il y a 6 mois | |
routes | il y a 13 heures | |
scripts | il y a 5 jours | |
seeders | il y a 1 semaine | |
utils | il y a 5 heures | |
.env | il y a 6 mois | |
.gitignore | il y a 6 mois | |
README.md | il y a 13 heures | |
app.js | il y a 23 heures | |
docker-compose.yml | il y a 6 mois | |
package-lock.json | il y a 1 jour | |
package.json | il y a 1 jour | |
test-docker-connection.js | il y a 5 heures |
官网node项目
应用程序支持邮件通知功能,但需要正确配置才能使用。如果不配置邮件服务,应用程序仍可正常运行,只是不会发送邮件通知。
bash
export EMAIL_SERVICE=qq
export EMAIL_USER=your-email@qq.com
export EMAIL_PASS=your-app-password
export ADMIN_EMAIL=admin@yourcompany.com
2. 直接修改代码:
编辑 utils/emailService.js
文件中的配置
### 支持的邮件服务
- QQ邮箱
- Gmail
- 163邮箱
- Outlook
- 其他SMTP服务
### 注意事项
- 使用QQ邮箱需要开启SMTP服务并获取授权码
- 使用Gmail需要开启两步验证并生成应用密码
- 如果不配置邮件服务,系统会跳过邮件发送,不会影响其他功能