From c043c71cad693ee9ea1d37e4ad0c113ea2a57395 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Wed, 30 Sep 2009 17:34:29 +0200 Subject: [PATCH] [gen_confs/adherents.py] unicode -> str pour sendmail... darcs-hash:20090930153429-ffbb2-abd72e7243f25c4b63bf6fbea02be0104d4fef3c.gz --- gestion/gen_confs/adherents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/gen_confs/adherents.py b/gestion/gen_confs/adherents.py index eff34bde..df6bd180 100644 --- a/gestion/gen_confs/adherents.py +++ b/gestion/gen_confs/adherents.py @@ -157,7 +157,7 @@ class mail_bienvenue: To = mail if To.find('@') == -1: To += '@crans.org' conn=smtplib.SMTP('localhost') - conn.sendmail(From, To, config.txt_mail_bienvenue % { 'From': From, 'To': To }) + conn.sendmail(From, To, config.txt_mail_bienvenue.encode('utf-8') % { 'From': From, 'To': To }) conn.quit() print OK except Exception, c: