selfteaching / selfteaching/selfteaching-python-camp

Day11 发送邮件一直显示超时

Open
#3,146 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

A7C6B204-90F3-4194-B9A2-CF43CE02FE04
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.