import smtplib
EMAIL_ADDRESS = '___@gmail.com'
PASSWORD = input(str("Enter Password: "))
with smtplib.SMTP('smtp.gmail.com', 587) as smtp:
smtp.ehlo()
smtp.starttls()
smtp.login(EMAIL_ADDRESS, PASSWORD)
print("Login Successful")
subject = 'Grab dinner'
body = 'How about dinner this saturday'
msg = f'Subject{subject}\n\n Body{body}'
smtp.sendmail(EMAIL_ADDRESS, '___@gmail.com', msg)
но это ошибка, которую я получаю;
raise SMTPConnectError(code, msg)
smtplib.SMTPConnectError: (451, b'Request action aborted on MFE proxy, SMTP server is not available.')