Fix Python – 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 “”, line 14, in
File “/usr/lib/python2.5/”, line 554, in login
raise SMTPException(“SMTP AUTH extension not supported by server.”)
smtplib.SMTPException: ….