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