From 8de44976c5037a8307a967eeef80ae484d8d7f81 Mon Sep 17 00:00:00 2001 From: pauget Date: Tue, 14 Sep 2004 22:48:23 +0200 Subject: [PATCH] Changement txt mail Recherche si chambre occupe simplifie. darcs-hash:20040914204823-41617-8547c9d515e560eadfc18ccfce4fbc23b1ec4ba8.gz --- gestion/gen_confs/switchs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index bf70b0ff..dcf05ec3 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -161,11 +161,12 @@ exit conn=smtplib.SMTP('localhost') txt_mail = "From: Crans scripts <%(From)s>\n" txt_mail+= "To: %(To)s\n" - txt_mail+= "Subject: (CRANS) Changement d'état d'une chambre !\n\n" + txt_mail+= "Subject: (CRANS) " if action == 'disable': txt_mail+= "Chambre %s à débrancher." % chbre else: txt_mail+= "Chambre %s à brancher." % chbre + txt_mail+= '\n\nMerci.' conn.sendmail(From, To , txt_mail % { 'From' : From, 'To' : To }) conn.quit() print OK