Correction de bug sur l'envoie de mail.
This commit is contained in:
parent
1954fea6ab
commit
d54b811ac9
1 changed files with 2 additions and 1 deletions
|
@ -131,6 +131,7 @@ def send_mail(liste_rendus, adh):
|
||||||
# print adh.get_mail()
|
# print adh.get_mail()
|
||||||
To = adh.get_mail()
|
To = adh.get_mail()
|
||||||
From = 'impression@crans.org'
|
From = 'impression@crans.org'
|
||||||
|
Cc = 'impression@crans.org'
|
||||||
mailtxt = mail.generate('remboursement_impressions', {
|
mailtxt = mail.generate('remboursement_impressions', {
|
||||||
'To': To,
|
'To': To,
|
||||||
'From': From,
|
'From': From,
|
||||||
|
@ -141,7 +142,7 @@ def send_mail(liste_rendus, adh):
|
||||||
})
|
})
|
||||||
|
|
||||||
# print mailtxt.as_string()
|
# print mailtxt.as_string()
|
||||||
actually_sendmail(From, (To,), mailtxt)
|
actually_sendmail(From, (To, Cc), mailtxt)
|
||||||
|
|
||||||
#Un bloc de test
|
#Un bloc de test
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue