From d9ba43b43b79214d7572059ca4d1a8dd0fca49c2 Mon Sep 17 00:00:00 2001 From: detraz Date: Sat, 8 Sep 2018 21:09:48 +0200 Subject: [PATCH] Fix, utilise la bonne fonction d'envoie de mails --- cotisations/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/utils.py b/cotisations/utils.py index 0211dd40..a8c2768e 100644 --- a/cotisations/utils.py +++ b/cotisations/utils.py @@ -89,7 +89,7 @@ def send_mail_invoice(invoice): 'Votre facture / Your invoice', template.render(ctx), GeneralOption.get_cached_value('email_from'), - [invoice.user.email], + [invoice.user.get_mail], attachments=[('invoice.pdf', pdf, 'application/pdf')] ) mail.send()