From 5b347f3db4f63715e731dec8c251c2c9c3dfe7f6 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()