File tree Expand file tree Collapse file tree
python_stdlib_learning/9_network_communication/smtplib_learn Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from email .mime .text import MIMEText
66
77# 配置信息
8- sender_email = "3135989009@qq.com "
8+ sender_email = "your_send_email "
99sender_password = "qegpizcjxcckdebe"
10- recv_email = "xianzhisen_yang@outlook.com "
10+ recv_email = "your_recv_email "
1111smtp_server = "smtp.qq.com"
1212smtp_port = 465
1313
Original file line number Diff line number Diff line change 33from email .mime .text import MIMEText
44
55# 配置信息
6- sender_email = "3135989009@qq.com "
6+ sender_email = "your_send_email "
77sender_password = "qegpizcjxcckdebe"
8- to_email = "3135989009@qq.com "
9- cc_email = "xianzhisen_yang@outlook.com "
10- bcc_email = "xianzhisen3135@gmail.com "
8+ to_email = "your_send_email "
9+ cc_email = "your_recv_email "
10+ bcc_email = "other_your_recv_email "
1111smtp_server = "smtp.qq.com"
1212smtp_port = 465
1313
Original file line number Diff line number Diff line change 55from typing import final
66
77# 配置信息
8- sender_email = "3135989009@qq.com "
8+ sender_email = "your_send_email "
99sender_password = "qegpizcjxcckdebe"
10- recv_email = "xianzhisen_yang@outlook.com "
10+ recv_email = "your_recv_email "
1111smtp_server = "smtp.qq.com"
1212smtp_port = 587
1313
Original file line number Diff line number Diff line change 44from email .mime .text import MIMEText
55
66# 配置信息
7- sender_email = "3135989009@qq.com "
7+ sender_email = "your_send_email "
88sender_password = "qegpizcjxcckdebe"
9- recv_email = "xianzhisen_yang@outlook.com "
9+ recv_email = "your_recv_email "
1010smtp_server = "smtp.qq.com"
1111smtp_port = 465
1212# 创建邮件内容
Original file line number Diff line number Diff line change 77from ssl import enum_certificates
88
99# 配置信息
10- sender_email = "3135989009@qq.com "
10+ sender_email = "your_send_email "
1111sender_password = "qegpizcjxcckdebe"
12- recv_email = "xianzhisen_yang@outlook.com "
12+ recv_email = "your_recv_email "
1313smtp_server = "smtp.qq.com"
1414smtp_port = 465
1515attach_path = "./email_html.html"
Original file line number Diff line number Diff line change 1212)
1313
1414# 配置信息
15- sender_email = "3135989009@qq.com "
15+ sender_email = "your_send_email "
1616# sender_password = "qegpizcjxcckdebe"
1717sender_password = "qegpizcjxcckdadw"
18- recv_email = "xianzhisen_yang@outlook.com "
18+ recv_email = "your_recv_email "
1919smtp_server = "smtp.qq.com"
2020smtp_port = 465
2121max_retres = 3
You can’t perform that action at this time.
0 commit comments