From 58ed09043419c74fee01cea2deafc48b416c10e1 Mon Sep 17 00:00:00 2001 From: Mark Silvis Date: Tue, 19 Jun 2018 04:14:50 +0000 Subject: [PATCH] fixes email message and bumps version --- VERSION | 2 +- pittgrub/emailer.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 0d91a54..a918a2a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.6.0 diff --git a/pittgrub/emailer.py b/pittgrub/emailer.py index 825befb..b0cfc8f 100644 --- a/pittgrub/emailer.py +++ b/pittgrub/emailer.py @@ -96,9 +96,8 @@

Thanks for signing up for the PittGrub newsletter! We will notify you when the PittGrub app is available on the iOS App Store and Google Play Store. -
- -Unsubscribe +

+

Click here to unsubscribe.

""" @@ -254,10 +253,12 @@ def send_email_list_confirmation(to: str) -> bool: # body text_body = NEWSLETTER_SIGNUP_TEXT.format(email=to) html_body = NEWSLETTER_SIGNUP_HTML.format(email=to) + msg.attach(MIMEText(text_body, 'text')) + msg.attach(MIMEText(html_body, 'html')) # send message email_server.ehlo() email_server.starttls() email_server.login(EMAIL_USER, EMAIL_PASS) - email_server.sendmail(msf['From'], msg['To'], msg.as_string()) + email_server.sendmail(msg['From'], msg['To'], msg.as_string()) email_server.quit()