Re: Gmail Error using smtplib

Discussion in 'Python' started by Tim Williams, Jul 20, 2007.

  1. Tim Williams

    Tim Williams Guest

    On 20/07/07, DJ Fadereu <> 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 = ''

    >
    > msg['Subject'] = 'Hello'
    > msg ['From'] = ''
    > msg['To'] = ''
    >
    > s = smtplib.SMTP('alt1.gmail-smtp-in.l.google.com')
    > s.set_debuglevel(1)
    > s.login('','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('','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 :)
    Tim Williams, Jul 20, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. py
    Replies:
    0
    Views:
    341
  2. Jean-Paul Calderone

    Re: smtplib starttls gmail example

    Jean-Paul Calderone, Jan 23, 2007, in forum: Python
    Replies:
    0
    Views:
    409
    Jean-Paul Calderone
    Jan 23, 2007
  3. DJ Fadereu

    Gmail Error using smtplib

    DJ Fadereu, Jul 20, 2007, in forum: Python
    Replies:
    1
    Views:
    3,526
    supercooper
    Jul 20, 2007
  4. Evan
    Replies:
    3
    Views:
    470
  5. Gabriel Genellina

    Re: smtplib send email by using gmail smtp server

    Gabriel Genellina, May 3, 2009, in forum: Python
    Replies:
    0
    Views:
    447
    Gabriel Genellina
    May 3, 2009
Loading...

Share This Page