Skip to content

Commit 2e9b388

Browse files
authored
Merge pull request #153 from arnaud-morvan/fix-email-sender-when-not-same-as-username
Fix sender_email when not the same as smtp_username
2 parents ef1474c + 5a93fdd commit 2e9b388

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

smtp_functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ def send_email(error: str, config: Dynaconf) -> None:
4242
msg.set_content(error)
4343

4444
sender_email = config.notification.email_sender
45-
if "smtp_username" in config.notification:
46-
sender_email = config.notification.smtp_username
4745

4846
try:
4947
smtp_conn = create_connection_and_log_user(config)

0 commit comments

Comments
 (0)