YinDang
如题 已经利用authme强制要求玩家绑定邮箱了
但是绑定后 想寻找方式让玩家打开邮件去激活邮箱 并且会生成一个密码 如何做到呢

__FELT
需要在配置文件里填入你的smtp服务器

https://www.spigotmc.org/threads ... -email-smtp.476618/

YinDang

    # Email SMTP server host
    mailSMTP: smtp.qq.com
    # Email SMTP server port
    mailPort: 465
    # Only affects port 25: enable TLS/STARTTLS?
    useTls: true
    # Email account which sends the mails
    mailAccount: '这里填的生成的验证码'
    # Email account password
    mailPassword: 'qq邮箱的密码'
    # Email address, fill when mailAccount is not the email address of the account
    mailAddress: '[email protected]'
    # Custom sender name, replacing the mailAccount name in the email
    mailSenderName: '自定义'
    # Recovery password length
    RecoveryPasswordLength: 8
    # Mail Subject
    mailSubject: '你的新登陆密码'
    # Like maxRegPerIP but with email
    maxRegPerEmail: 3
    # Recall players to add an email?
    recallPlayers: true
    # Delay in minute for the recall scheduler
    delayRecall: 5
    # Blacklist these domains for emails
    emailBlacklisted:
    - 10minutemail.com
    # Whitelist ONLY these domains for emails
    emailWhitelisted: []
    # Send the new password drawn in an image?
    generateImage: false
    # The OAuth2 token
    emailOauth2Token: ''


我是这么填的

但是并没有受到激活邮箱的验证码
而且后面的邮箱随便填都不要紧 而且请仔细读下贴内容

__FELT
YinDang 发表于 2022-7-30 20:01
# Email SMTP server host
    mailSMTP: smtp.qq.com
    # Email SMTP server port

你有开通smtp服务吗?

YinDang
__FELT 发表于 2022-7-30 20:45
你有开通smtp服务吗?

开通了 这不上面写着填了自己的smtp验证码吗

YinDang
本帖最后由 YinDang 于 2022-7-30 21:54 编辑
__FELT 发表于 2022-7-30 20:45
你有开通smtp服务吗?

[AuthMe] Failed to send a mail to [[email protected]]: [EmailException]: Sending the email to the following server failed : smtp.qq.com:465




DreamVoid
mailSMTP: smtp.qq.com
这里改成 ssl://smtp.qq.com

YinDang
本帖最后由 YinDang 于 2022-7-30 21:58 编辑
DreamVoid 发表于 2022-7-30 21:51
mailSMTP: smtp.qq.com
这里改成 ssl://smtp.qq.com

   mailSMTP: ssl://smtp.qq.com
[21:55:46 WARN]: [AuthMe] Failed to send a mail to [[email protected]]: [EmailException]: Sending the email to the following server failed : ssl://smtp.qq.com:465

DreamVoid
YinDang 发表于 2022-7-30 21:56
mailSMTP: ssl://smtp.qq.com
[21:55:46 WARN]: [AuthMe] Failed to send a mail to []: [EmailExcept ...

端口465试着改成587,如果还是连不上再试着把“ssl://”去掉

YinDang
DreamVoid 发表于 2022-7-30 22:10
端口465试着改成587,如果还是连不上再试着把“ssl://”去掉

还是不行

第一页 上一页 下一页 最后一页