gpt4 book ai didi

server - 连接错误: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser

转载 作者:行者123 更新时间:2023-12-02 07:13:08 25 4
gpt4 key购买 nike

我正在使用 php 脚本连接 imap.gmail.com,我有一个付费的 google 应用帐户。它正在工作,但一段时间后我收到以下错误

  1. 它说我必须从浏览器登录,但我的 CentsOS vps 服务器没有浏览器,只有命令提示符

我正在使用 mydomain.com

Fatal error: Uncaught exception 'ImapMailboxException' with message 'Connection error: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser: https://support.google.com/mail/acco' in /xxxxxx/classes/ImapMailbox.php:51 Stack trace: #0 /home/theluxla/public_html/_backoffice/mailpilot/classes/ImapMailbox.php(42): ImapMailbox->initImapStream() #1 /xxxxxx/classes/ImapMailbox.php(114): ImapMailbox->getImapStream() #2 /xxxxxx/mail.v3.php(28): ImapMailbox->searchMailbox('ALL') #3 {main} thrown in/xxxxx/classes/ImapMailbox.php on line 51

最佳答案

Google 回复我:

Thank you for your message. I understand you're having issues connecting your application with our IMAP server, I'll be happy to help. I didn't want to bother with a call this early, reason why, I'm sending this email instead In this case, it seems this error is related to the access to "Less secure apps" disabled for the user you're trying to connect via IMAP. Please follow these steps to solve this issue:

  1. In your Admin Console, follow the steps available at this support article https://support.google.com/a/answer/6260879?hl=en under the section "Enabling less secure apps to access accounts".

  2. Log in as the affected user and follow the steps to "Allow less secure apps to access your account" as described at this support article https://support.google.com/accounts/answer/6010255. I hope this information is helpful. Your case will remain open for three business days and it will auto close if no reply is received. Feel free to reply to this message if you need more help, I'll be happy to continue assisting you.

Sincerely,

David

关于server - 连接错误: Can not authenticate to IMAP server: [ALERT] Please log in via your web browser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38047602/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com