Skip to content

Commit

Permalink
repair receiver address
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDuck888 authored Sep 20, 2023
1 parent 919c664 commit 41c794d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def send(config, last_send=None, dry_run=False):
else:
smtp.login(email, password)

msg = build_message(email)
msg = build_message(email, to_email)

smtp.sendmail(from_addr=email, to_addrs=to_email, msg=msg.as_string())
smtp.quit()
Expand All @@ -49,9 +49,9 @@ def send(config, last_send=None, dry_run=False):
return sent_on


def build_message(email):
def build_message(email, to_email):
"""Create email message."""
message = Message(to=email)
message = Message(to=to_email)
message.sender = "icloud-docker <" + email + ">"
message.date = datetime.datetime.now().strftime("%d/%m/%Y %H:%M")
message.subject = "icloud-docker: Two step authentication required"
Expand Down

0 comments on commit 41c794d

Please sign in to comment.