[sysadmin-bin] The recipients has to be a list



commit b93c6e7c571940337993841242c6ff85c1c44f0e
Author: Andrea Veri <av gnome org>
Date:   Thu Oct 9 15:48:20 2014 +0200

    The recipients has to be a list

 membership/foundation-operations.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index c91967e..830bd9a 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -161,7 +161,7 @@ def send_form_letters(form_letter, email, name):
         msg['Reply-To']  = "membership-committee gnome org"
         msg['Cc'] = "membership-committee gnome org"
         server = smtplib.SMTP("localhost")
-        server.sendmail(msg['From'], msg['To'], msg['Cc'], msg.as_string())
+        server.sendmail(msg['From'], [msg['To'], msg['Cc']], msg.as_string())
         server.quit()
         print "Successfully sent email to %s with email %s" % (name, email)
     except smtplib.SMTPException:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]