diff --git a/send_email.py b/send_email.py index 247e4d5..5f7a83b 100644 --- a/send_email.py +++ b/send_email.py @@ -84,7 +84,7 @@ def send_email(receiver_email): try: # try to create a secure SSL context - with smtplib.SMTP_SSL(host=host, port=port, context=context) as server: + with smtplib.SMTP_SSL(host, port, context=context) as server: server.login(sender_email, password=password) server.sendmail( to_addrs=receiver_email,