8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 03:43:12 +00:00

Fix, utilise la bonne fonction d'envoie de mails

This commit is contained in:
detraz 2018-09-08 21:09:48 +02:00 committed by Alexandre Iooss
parent 5bf8b42a83
commit d9ba43b43b

View file

@ -89,7 +89,7 @@ def send_mail_invoice(invoice):
'Votre facture / Your invoice', 'Votre facture / Your invoice',
template.render(ctx), template.render(ctx),
GeneralOption.get_cached_value('email_from'), GeneralOption.get_cached_value('email_from'),
[invoice.user.email], [invoice.user.get_mail],
attachments=[('invoice.pdf', pdf, 'application/pdf')] attachments=[('invoice.pdf', pdf, 'application/pdf')]
) )
mail.send() mail.send()