I want to send an email using Python 3. I still can not understand the examples that I saw. Here is one link: Using Python to send email
I pulled out the first simple example found in the link above. I find this example a good example of a combination of examples that I have seen on the Internet. This is apparently the main form of what I am doing.
When I try to execute the code below, I get an error:
File "C:\Python33\Lib\email.py", line 595, in login raise SMTPException("SMTP AUTH extension not supported by server.") smtplib.SMTPException: SMTP AUTH extension not supported by server.
Here is the code:
# Send Mail import smtplib server = smtplib.SMTP('smtp.gmail.com', 587) # Log in to the server server.login(" myEmail@gmail.com ","myPassword") # Send mail msg = "\nHello!" server.sendmail(" myEmail@gmail.com "," recipient@gmail.com ", msg)
source share