Coquille.
This commit is contained in:
parent
d6633b1258
commit
9c472f97c0
1 changed files with 2 additions and 2 deletions
|
@ -291,7 +291,7 @@ def upload_hard(proprio, elupload, elid, eltype, curseur, ldap):
|
|||
with mail_module.ServerConnection() as smtp_conn:
|
||||
corps = mail_module.generate('upload_hard', mail_data).as_string()
|
||||
if not DEBUG:
|
||||
smtp_conn.sendmail(upload.expediteur, proprio.email(), corps)
|
||||
smtp_conn.sendmail(upload.expediteur, unicode(proprio['mail'][0]), corps)
|
||||
else:
|
||||
print corps
|
||||
|
||||
|
@ -359,7 +359,7 @@ def upload_soft(proprio, elupload, elid, eltype, curseur):
|
|||
'limite_hard': upload.hard,
|
||||
}).as_string()
|
||||
if not DEBUG:
|
||||
smtp_connect.sendmail(upload.expediteur, proprio.email(), corps)
|
||||
smtp_connect.sendmail(upload.expediteur, proprio.get_mail(), corps)
|
||||
else:
|
||||
print corps
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue