How to send an email with Gmail as provider using Python?

I am trying to send email (Gmail) using python, but I am getting following error. Traceback (most recent call last): File “emailSend.py”, line 14, in <module> server.login(username,password) File “/usr/lib/python2.5/smtplib.py”, line 554, in login raise SMTPException(“SMTP AUTH extension not supported by server.”) smtplib.SMTPException: SMTP AUTH extension not supported by server. The Python script is the following. … Read more