Skip to content

Commit

Permalink
Hot fix mailer Merge pull request #21 from Jackiebibili/hot-fix (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackiebibili authored Oct 26, 2022
1 parent cac98e1 commit e21fa1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/pushnotification/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ def server_send_email(server: SMTP_SSL, receiver_emails: list[str], message: str


def send_email(receiver_emails: list[str], messages: list[str]):
global server
if len(messages) == 0:
return
# print(messages[0])
# print(receiver_emails, messages[0])
try:
err = server_send_email(server, receiver_emails, messages[0])
if err is not None:
Expand Down

0 comments on commit e21fa1f

Please sign in to comment.