[sysadmin-bin] Make sure e-mails are sent as plain text
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Make sure e-mails are sent as plain text
- Date: Thu, 18 Dec 2014 01:44:53 +0000 (UTC)
commit a9c989c6e4ec0804a399fc66cce8f84460bec73b
Author: Andrea Veri <av gnome org>
Date: Thu Dec 18 02:44:46 2014 +0100
Make sure e-mails are sent as plain text
membership/foundation-operations.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 91a72b3..2cec356 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -179,16 +179,16 @@ def send_form_letters(form_letter, email, name, *args):
if form_letter in [renewal_form_letter, new_member_form_letter]:
msg = MIMEText(form_letter.safe_substitute (
cn = name,
- ), 'utf8')
+ ), 'plain', 'utf8')
elif form_letter is expired_membership_form_letter:
msg = MIMEText(form_letter.safe_substitute (
cn = name,
last_renewed_on_date = args[0],
- ), 'utf8')
+ ), 'plain', 'utf8')
elif form_letter is renewals_to_foundation_list:
msg = MIMEText(form_letter.safe_substitute (
expired_members = args[0],
- ), 'utf8')
+ ), 'plain', 'utf8')
if form_letter is renewals_to_foundation_list:
msg['Subject'] = "Memberships needing renewal (%s)" % year_month
@@ -361,7 +361,7 @@ Hi,
as per point 1.3 of [1], here it comes a list of members in need of a
renew in case they didn't receive their individual e-mail:
-First name Last name (Last renewed on)
+First name Last name, (Last renewed on)
$expired_members
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]