From 277b35f6a37891f7e782412caad1f03484e2025d Mon Sep 17 00:00:00 2001 From: PSoul Date: Tue, 17 Oct 2017 15:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20No=20suitable=20authentica?= =?UTF-8?q?tion=20method=20found.=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cobra/send_mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/send_mail.py b/cobra/send_mail.py index 759ef0b2..eb168cb2 100644 --- a/cobra/send_mail.py +++ b/cobra/send_mail.py @@ -22,7 +22,7 @@ def send_mail(target, filename, receiver): server = smtplib.SMTP_SSL(host=host, port=port) else: server = smtplib.SMTP(host=host, port=port) - + server.starttls() s_sid = filename.split('.')[0] msg = MIMEMultipart() msg['From'] = sender