This commit is contained in:
root
2026-10-16 13:51:00 +08:00
parent 6bf949949c
commit 8fc899d0a9
3830 changed files with 11228 additions and 188377 deletions
+17
View File
@@ -0,0 +1,17 @@
import smtplib
from email.mime.text import MIMEText
smtp_server = "smtp.gmail.com"
smtp_port = 587
sender = "liuming256kb@gmail.com"
app_pwd = "xkbt oorr zylb lnjt"
msg = MIMEText("测试邮件内容")
msg["Subject"] = "SMTP测试"
msg["From"] = sender
msg["To"] = "6293968@qq.com"
with smtplib.SMTP(smtp_server, smtp_port) as server:
server.starttls()
server.login(sender, app_pwd)
server.send_message(msg)