selfteaching / selfteaching/selfteaching-python-camp
Day11 运行代码时邮箱密码(授权码)无法输入
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
在运行day11作业的代码时,需要输入邮箱名和密码,但是密码处于无法输入的状态?
截图如下:
输入发件人邮箱:xxx@163.com
输入发件人邮箱密码:
输入收件人邮箱:pythoncamp@163.com
Traceback (most recent call last):
File "c:/Users/陈建辉/Documents/GitHub/selfteaching-python-camp/19100402/cjh20040088/d11/main.py", line 24, in <module>
yag.send(to=recipients,subject=subject,contents=result)
File "C:\Python37\lib\site-packages\yagmail\sender.py", line 147, in send
self.login()
File "C:\Python37\lib\site-packages\yagmail\sender.py", line 246, in login
self._login(self.credentials)
File "C:\Python37\lib\site-packages\yagmail\sender.py", line 204, in _login
self.smtp.login(self.user, password)
File "C:\Python37\lib\smtplib.py", line 694, in login
self.ehlo_or_helo_if_needed()
File "C:\Python37\lib\smtplib.py", line 603, in ehlo_or_helo_if_needed
raise SMTPHeloError(code, resp)
smtplib.SMTPHeloError: (500, b'Error: bad syntax')
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with 19100402/cjh20040088/d11/main.py at line 24 and reproduce the Day11 email-sending run described in the issue. Read the yagmail and smtplib traceback to determine whether the password prompt or SMTP connection causes the failure. Done means the credentials can be entered and the script sends the email without the reported SMTPHeloError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100