mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-10 20:06:25 +00:00
Fix, utilise la bonne fonction d'envoie de mails
This commit is contained in:
parent
52f3d4d550
commit
5b347f3db4
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue