Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Gmail Error using smtplib

Thread Tools

Re: Gmail Error using smtplib

Tim Williams
Posts: n/a
On 20/07/07, DJ Fadereu <(E-Mail Removed)> 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 = '(E-Mail Removed)'

> msg['Subject'] = 'Hello'
> msg ['From'] = '(E-Mail Removed)'
> msg['To'] = '(E-Mail Removed)'
> s = smtplib.SMTP('')
> s.set_debuglevel(1)
> s.login('(E-Mail Removed)','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\", line 13, in <module>
> s.login('(E-Mail Removed)','xxxxxxxxx'')
> File "C:\Python25\lib\", 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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: smtplib send email by using gmail smtp server Gabriel Genellina Python 0 05-03-2009 06:08 PM
[SMTPLIB] how to send a "Multiline" mail with smtplib? Evan Python 3 06-23-2008 08:50 AM
Gmail Error using smtplib DJ Fadereu Python 1 07-20-2007 02:02 PM
Re: smtplib starttls gmail example Jean-Paul Calderone Python 0 01-23-2007 05:37 PM
smtplib starttls gmail example py Python 0 01-23-2007 05:25 PM