Skip to content

Commit

Permalink
Fixed TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Gonzalez committed Dec 16, 2021
1 parent 46e290b commit 8525eab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ax3_email/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ def send_email(
attachments=None,
alternative=None
):
bcc_list: list = bcc + EMAIL_BACKUP_LIST if bcc else EMAIL_BACKUP_LIST
if alternative is None:
email_message = _email_message_simple(
subject=_email_subject_format(subject),
body=body,
mail_to=mail_to,
reply_to=reply_to,
bcc=bcc + EMAIL_BACKUP_LIST,
bcc=bcc_list,
from_email=from_email,
)
else:
Expand All @@ -103,7 +104,7 @@ def send_email(
mail_to=mail_to,
alternative=alternative,
reply_to=reply_to,
bcc=bcc + EMAIL_BACKUP_LIST,
bcc=bcc_list,
from_email=from_email,
)

Expand Down

0 comments on commit 8525eab

Please sign in to comment.