selfteaching / selfteaching/selfteaching-python-camp
Day11 发送邮件一直显示超时
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description

import requests
import stats_word
r = requests.get("https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA")
from pyquery import PyQuery
document=PyQuery(r.text)
content = document('#js_content').text()
import getpass
sender = input("输入发件人邮箱:")
password = getpass.getpass("输入发件人邮箱密码:")
recipients = input("输入收件人邮箱:")
a=stats_word.stats_text(content,100)
b=str(a)
import yagmail
yag=yagmail.SMTP("sender","password")
yag.send(recipients,"自学训练营学习1群day11zhanghuijie",b)
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 the shown Python snippet, especially the yagmail.SMTP setup and yag.send call, and reproduce the timeout using the provided sender, recipient, and message flow. Check the email-sending step and its surrounding configuration; done means the message sends without timing out and the observed cause is documented.
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