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 = {