新增使用imap来代替临时邮箱获取验证码

This commit is contained in:
MoLeft
2025-01-20 05:46:18 +00:00
parent 464f152df9
commit 4f42c1a1b5
3 changed files with 144 additions and 6 deletions

View File

@@ -50,6 +50,24 @@ TEMP_MAIL='ccxxxxcxx'
```
那么程序将随机生成 `@wozhangsan.me` 后缀作为注册邮箱。
### 使用 IMAP 来代替 tempmail.plus 邮箱
如果无法使用 tempmail.plus 邮箱,或者想使用一种更安全的方法来获取验证码,你可以像这样设置
```base
DOMAIN='wozhangsan.me'
TEMP_MAIL=null
# IMAP服务器
IMAP_SERVER=imap.xxxxx.com
# IMAP的SSL端口
IMAP_PORT=993
# 使用cf转发到的邮箱
IMAP_USER=xxxxxx@xxxxx.com
# 邮箱授权码
IMAP_PASS=xxxxxxxxxxxxx
# [可选] 默认是收件箱(inbox)
# 你也可以设置成其他的文件夹,只要你可以收到
IMAP_DIR=
```
## 运行方法