From 0ca7be619127cb9e048f3fca23a447cd8fb0a3b2 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 23 Mar 2021 10:11:34 -0400 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E9=82=AE=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/SendMailSMTP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/SendMailSMTP.py b/tests/SendMailSMTP.py index f687335..f188d87 100644 --- a/tests/SendMailSMTP.py +++ b/tests/SendMailSMTP.py @@ -42,9 +42,9 @@ def send_mail(to_addr, subject="Test email", email_user=smtp_server_user_name, email_passwd=smtp_server_user_passwd, smtpserver="smtp.mailgun.org:587"): - """A function to send email, in MIME multi-part (plain-text and HTML). + """发送邮件的方法,可以使用这个方法发送纯文本或者 HTML 的邮件。 - For example: to send to myself: + 例如,如果你希望发送一个邮件给你的自己,你可以使用: send_mail(to_addr, subject, body_text=body_text, body_html=body_html) """