Hello, can anyone help me with this? What am I doing wrong here?

(I've changed private info to yyyy/xxxxxx)
 I'm getting an authentication error while using a standard script
Gmail:
--------------------------SCRIPT-----------------------------
import smtplib
from email.MIMEText import MIMEText

msg = MIMEText('Hello, this is fadereu...')
>From = '[EMAIL PROTECTED]'

msg['Subject'] = 'Hello'
msg ['From'] = '[EMAIL PROTECTED]'
msg['To'] = '[EMAIL PROTECTED]'

s = smtplib.SMTP('alt1.gmail-smtp-in.l.google.com')
s.set_debuglevel(1)
s.login('[EMAIL PROTECTED]','xxxxxxxxx')
s.sendmail(msg['From'], msg['To'], msg.as_string())
s.close()
----------------------------ERROR------------------------------
Traceback (most recent call last):
  File "C:\Documents and Settings\Acer User\Desktop\Code\S60 scripts
\Fadereu's Codez\gmail.py", line 13, in <module>
    s.login('[EMAIL PROTECTED]','xxxxxxxxx'')
  File "C:\Python25\lib\smtplib.py", line 554, in login
    raise SMTPException("SMTP AUTH extension not supported by
server.")
SMTPException: SMTP AUTH extension not supported by server.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to