rduplain/flask-mail — Issue #3: Problem with Gmail's SMTP server
Author: rduplain
Created: 2012-02-29 16:41:52+00:00
State: open
Labels: bug, import

I'm having a bizarre issue when trying to use Gmail as a SMTP server. I have set MAIL_SERVER, MAIL_USERNAME, MAIL_PASSWORD AND MAIL_USE_TLS correctly, but I keep getting the following error:

SMTP AUTH extension not supported by server.}}}
{{{SMTP AUTH extension not supported by server.

At first glance, the original code is missing explicit helo()/ehlo() calls, but adding them doesn't seem help either.

The strange thing is, with the exact same parameters, a Fabric task "try_sending_mail" using smtplib directly seems to work just fine.

Here's the code for try_sending_mail(): http://gist.github.com/627275

Can you try and reproduce that with a Gmail account of yours using Flask-Mail? I must be either missing something badly, or there might be a little bug hidden in Flask-Mail.

---------------------------------------
- Bitbucket: https://bitbucket.org/danjac/flask-mail/issue/3
- Originally Reported By: [Jonas Galvez](http://bitbucket.org/galvez)
- Originally Created At: 2010-10-15 01:27:43