On 20/07/07, DJ Fadereu <[EMAIL PROTECTED]> wrote: > 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. >
The error fairly self-explanitory :) >>SMTPException: SMTP AUTH extension not supported by server. In fact, you are trying to send outbound email through an inbound email server. You need to use GMAIL's outbound server. HTH :) -- http://mail.python.org/mailman/listinfo/python-list