Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP Authentication Error: Basic Authentication Disabled #46

Open
Jill0099 opened this issue Jan 7, 2025 · 5 comments
Open

SMTP Authentication Error: Basic Authentication Disabled #46

Jill0099 opened this issue Jan 7, 2025 · 5 comments

Comments

@Jill0099
Copy link

Jill0099 commented Jan 7, 2025

When attempting to send an email using the Python script, the process fails with an SMTP authentication error. It appears that basic authentication has been disabled by the email server (Outlook). Below is the error traceback:

Rendering Email: 00%|██████████| 5/5 [00:8<00:00, 3.77s/it]
Traceback (most recent call last):
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/main.py", line 78, in
send_email(args.sender, args.receiver, args.sender_password, args.smtp_server, args.smtp_port, html)
File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py", line 58, in send_email
server.login(sender, password)
File "/home/runner/.local/share/uv/python/cpython-3.
.0-linux-x86_64-gnu/lib/python3./smtplib.py", line 7
, in login
raise last_exception
File "/home/runner/.local/share/uv/python/cpython-3.
.0-linux-x86_64-gnu/lib/python3./smtplib.py", line 739, in login
(code, resp) = self.auth(
^^^^^^^^^^
File "/home/runner/.local/share/uv/python/cpython-3.
.0-linux-x86_64-gnu/lib/python3./smtplib.py", line 662, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.39 Authentication unsuccessful, basic authentication is disabled. [BYP220CA003.NAMP220.PROD.OUTLOOK.COM 2025-0-07T09:3***:44.957Z 08DD2EB4D55***E4A0]')
Error: Process completed with exit code ***.

@TideDra
Copy link
Owner

TideDra commented Jan 7, 2025

check your smtp_server, port and passward, or use other email server. This error is not related to the script.

@xie-xyh
Copy link

xie-xyh commented Jan 22, 2025

When attempting to send an email using the Python script, the process fails with an SMTP authentication error. It appears that basic authentication has been disabled by the email server (Outlook). Below is the error traceback:尝试使用 Python 脚本发送电子邮件时,该过程失败,并显示 SMTP 身份验证错误。电子邮件服务器 (Outlook) 似乎已禁用基本身份验证。以下是错误回溯:

Rendering Email: **00%|██████████| 5/5 [00:8<00:00, 3.77s/it]渲染电子邮件:00%|██████████|5/5 [00:8<00:00, 3.77 秒/它] Traceback (most recent call last):回溯 (最近调用最后): File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/main.py", line **78, in 文件“/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/main.py”,第 78 行,在 send_email(args.sender, args.receiver, args.sender_password, args.smtp_server, args.smtp_port, html)send_email(args.sender、args.receiver、args.sender_password、args.smtp_server、args.smtp_port、html) File "/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py", line 58, in send_email文件“/home/runner/work/zotero-arxiv-daily/zotero-arxiv-daily/construct_email.py”,第 58 行,send_email server.login(sender, password)server.login(发件人,密码) File "/home/runner/.local/share/uv/python/cpython-3.文件 “/home/runner/.local/share/uv/python/cpython-3..0-linux-x86_64-gnu/lib/python3./smtplib.py", line 7.0-linux-x86_64-gnu/lib/python3 的 gnu/lib/python3 中。_/smtplib.py“,第 7 行, in login  、 登录 raise last_exception  提高 last_exception File "/home/runner/.local/share/uv/python/cpython-3.**.0-linux-x86_64-gnu/lib/python3./smtplib.py", line 739, in login文件 “/home/runner/.local/share/uv/python/cpython-3..0-linux-x86_64-gnu/lib/python3 的 gnu/lib/python3 中。/smtplib.py“,第 739 行,登录中 (code, resp) = self.auth((代码,resp) = self.auth( ^^^^^^^^^^ File "/home/runner/.local/share/uv/python/cpython-3..0-linux-x86_64-gnu/lib/python3./smtplib.py", line 662, in auth文件 “/home/runner/.local/share/uv/python/cpython-3..0-linux-x86_64-gnu/lib/python3 的 gnu/lib/python3 中。/smtplib.py“,第 662 行,身份验证 raise SMTPAuthenticationError(code, resp)引发 SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (535, b'5.7.39 Authentication unsuccessful, basic authentication is disabled. [BYP220CA003.NAMP220.PROD.OUTLOOK.COM 2025-0_-07T09:3*:44.957Z 08DD2EB4D55E4A0]')smtplib 的SMTPAuthenticationError: (535, b'5.7.39 身份验证失败,基本身份验证被禁用。[作者P220CA003.NAMP220.PROD.OUTLOOK.COM 2025-0-07T09:3:44.957Z 08DD2EB4D55E4A0]') Error: Process completed with exit code ***.错误:进程已完成,但退出代码为 ***。

I have encountered the same problem, have you solved it?

@TideDra
Copy link
Owner

TideDra commented Jan 22, 2025

you can try other email server.

@yuxiangwei0808
Copy link

you can try other email server.

Hi, I tried foxmail and hotmail, and it says
smtplib.SMTPServerDisconnected: Connection unexpectedly closed.
How can I solve it?

@TideDra
Copy link
Owner

TideDra commented Jan 28, 2025

you can try other email server.

Hi, I tried foxmail and hotmail, and it says smtplib.SMTPServerDisconnected: Connection unexpectedly closed. How can I solve it?

check the smtp port and the passward. you can try QQ mail which passes the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants