Changement txt mail
Recherche si chambre occupe simplifie. darcs-hash:20040914204823-41617-8547c9d515e560eadfc18ccfce4fbc23b1ec4ba8.gz
This commit is contained in:
parent
da3d92ce7d
commit
8de44976c5
1 changed files with 2 additions and 1 deletions
|
@ -161,11 +161,12 @@ exit
|
||||||
conn=smtplib.SMTP('localhost')
|
conn=smtplib.SMTP('localhost')
|
||||||
txt_mail = "From: Crans scripts <%(From)s>\n"
|
txt_mail = "From: Crans scripts <%(From)s>\n"
|
||||||
txt_mail+= "To: %(To)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':
|
if action == 'disable':
|
||||||
txt_mail+= "Chambre %s à débrancher." % chbre
|
txt_mail+= "Chambre %s à débrancher." % chbre
|
||||||
else:
|
else:
|
||||||
txt_mail+= "Chambre %s à brancher." % chbre
|
txt_mail+= "Chambre %s à brancher." % chbre
|
||||||
|
txt_mail+= '\n\nMerci.'
|
||||||
conn.sendmail(From, To , txt_mail % { 'From' : From, 'To' : To })
|
conn.sendmail(From, To , txt_mail % { 'From' : From, 'To' : To })
|
||||||
conn.quit()
|
conn.quit()
|
||||||
print OK
|
print OK
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue