Skip to content

Commit

Permalink
убрал тестовую функцию отправки email
Browse files Browse the repository at this point in the history
  • Loading branch information
Puzanovim committed May 30, 2021
1 parent 65c1cc2 commit 3199bfa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ async def send_mail(to_addr: str, subject: str, msg: str):
smtp_obj.login(MAIL_LOGIN, MAIL_PWD)
smtp_obj.send_message(multipart_msg)
smtp_obj.quit()
print("письмо отправлено")

if __name__ == '__main__':
print("Hello")
asyncio.run(send_mail("[email protected]", "HELLO", "Hello Hello"))
print(f"письмо отправлено {to_addr}")

0 comments on commit 3199bfa

Please sign in to comment.