Skip to content

Commit

Permalink
Emails: add missing default from_email & from_name
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed May 7, 2024
1 parent ca6be46 commit e598d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lemarche/utils/apis/api_brevo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions lemarche/utils/apis/api_mailjet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e598d0b

Please sign in to comment.