From a0f2bc79136d44f4974cb3166afffd49836e2c73 Mon Sep 17 00:00:00 2001 From: Jalin Date: Sat, 12 Jan 2019 10:51:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=82=AE=E4=BB=B6=E5=8F=91?= =?UTF-8?q?=E9=80=81=E8=80=85=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py12306/helpers/notification.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py12306/helpers/notification.py b/py12306/helpers/notification.py index 06c2f62..50345cd 100644 --- a/py12306/helpers/notification.py +++ b/py12306/helpers/notification.py @@ -65,7 +65,7 @@ class Notification(): to = to if isinstance(to, list) else [to] message = EmailMessage() message['Subject'] = title - message['From'] = 'service@pjialin.com' + message['From'] = Config().EMAIL_SENDER message['To'] = to message.set_content(content) try: @@ -79,7 +79,7 @@ class Notification(): if __name__ == '__main__': - name = '张三3' + name = '张三4' content = '你的车票 广州 到 深圳 购买成功,请登录 12306 进行支付' # Notification.voice_code('13800138000', name, content) - Notification.send_email('admin@pjialin.com', name, content) + Notification.send_email('user@email.com', name, content)