From ad2bbc09e99ca243d17c08e0ea0fdf796d9bd873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Tue, 7 May 2024 16:20:28 +0200 Subject: [PATCH] =?UTF-8?q?fix(Emails):=20ajout=20de=20valeurs=20par=20d?= =?UTF-8?q?=C3=A9faut=20pour=20from=5Femail=20&=20from=5Fname=20(#1204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lemarche/utils/apis/api_brevo.py | 4 ++-- lemarche/utils/apis/api_mailjet.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lemarche/utils/apis/api_brevo.py b/lemarche/utils/apis/api_brevo.py index b102b28af..33a353b4e 100644 --- a/lemarche/utils/apis/api_brevo.py +++ b/lemarche/utils/apis/api_brevo.py @@ -125,8 +125,8 @@ def send_transactional_email_with_template( recipient_name: str, variables: dict, subject: str, - from_email: str, - from_name: str, + from_email=settings.DEFAULT_FROM_EMAIL, + from_name=settings.DEFAULT_FROM_NAME, ): api_client = get_api_client() api_instance = sib_api_v3_sdk.TransactionalEmailsApi(api_client) diff --git a/lemarche/utils/apis/api_mailjet.py b/lemarche/utils/apis/api_mailjet.py index d00339489..d1e955036 100644 --- a/lemarche/utils/apis/api_mailjet.py +++ b/lemarche/utils/apis/api_mailjet.py @@ -100,8 +100,8 @@ def send_transactional_email_with_template( recipient_name: str, variables: dict, subject: str, - from_email: str, - from_name: str, + from_email=settings.DEFAULT_FROM_EMAIL, + from_name=settings.DEFAULT_FROM_NAME, client=None, ): data = {