Comments (6)
@miguelgrinberg sir,i have solved this problem. Thank you very much!
from microblog.
The code that accompanies my O'Reilly book does show how to register users. Have you looked at that project?
from microblog.
@miguelgrinberg your O'Reilly book is very amazing. But it seems to do not receive an email with a confirmation link when I heck my inbox. What causes it?
from microblog.
@JulyUp have you tested sending emails? There are a lot of things that can be wrong. If the email server returns an error it is going to be visible on your log when you run in debug mode.
from microblog.
@miguelgrinberg First I run 'manage.py runserver'. When registering it shows error
127.0.0.1 - - [04/Jan/2017 10:41:04] "GET /auth/confirm HTTP/1.1" 302 - 127.0.0.1 - - [04/Jan/2017 10:41:04] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [04/Jan/2017 10:41:05] "GET /auth/unconfirmed HTTP/1.1" 200 - send: 'ehlo [127.0.1.1]\r\n' reply: '250-smtp.googlemail.com at your service, [2001:cc0:2016:f178:acb5:3800:747b:3643]\r\n' reply: '250-SIZE 35882577\r\n' reply: '250-8BITMIME\r\n' reply: '250-STARTTLS\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-PIPELINING\r\n' reply: '250-CHUNKING\r\n' reply: '250 SMTPUTF8\r\n' reply: retcode (250); Msg: smtp.googlemail.com at your service, [2001:cc0:2016:f178:acb5:3800:747b:3643] SIZE 35882577 8BITMIME STARTTLS ENHANCEDSTATUSCODES PIPELINING CHUNKING SMTPUTF8 send: 'STARTTLS\r\n' reply: '220 2.0.0 Ready to start TLS\r\n' reply: retcode (220); Msg: 2.0.0 Ready to start TLS send: 'ehlo [127.0.1.1]\r\n' reply: '250-smtp.googlemail.com at your service, [2001:cc0:2016:f178:acb5:3800:747b:3643]\r\n' reply: '250-SIZE 35882577\r\n' reply: '250-8BITMIME\r\n' reply: '250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH\r\n' reply: '250-ENHANCEDSTATUSCODES\r\n' reply: '250-PIPELINING\r\n' reply: '250-CHUNKING\r\n' reply: '250 SMTPUTF8\r\n' reply: retcode (250); Msg: smtp.googlemail.com at your service, [2001:cc0:2016:f178:acb5:3800:747b:3643] SIZE 35882577 8BITMIME AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH ENHANCEDSTATUSCODES PIPELINING CHUNKING SMTPUTF8 send: 'mail FROM:<[email protected]> size=1767\r\n' reply: '530-5.5.1 Authentication Required. Learn more at\r\n' reply: '530 5.5.1 https://support.google.com/mail/?p=WantAuthError y15sm144118820pgc.43 - gsmtp\r\n' reply: retcode (530); Msg: 5.5.1 Authentication Required. Learn more at 5.5.1 https://support.google.com/mail/?p=WantAuthError y15sm144118820pgc.43 - gsmtp send: 'rset\r\n' reply: '250 2.1.5 Flushed y15sm144118820pgc.43 - gsmtp\r\n' reply: retcode (250); Msg: 2.1.5 Flushed y15sm144118820pgc.43 - gsmtp send: 'quit\r\n' reply: '221 2.0.0 closing connection y15sm144118820pgc.43 - gsmtp\r\n' reply: retcode (221); Msg: 2.0.0 closing connection y15sm144118820pgc.43 - gsmtp Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/home/congleng/work/flask-web/flasky-master/app/email.py", line 9, in send_async_email mail.send(msg) File "/usr/local/lib/python2.7/dist-packages/flask_mail.py", line 416, in send message.send(connection) File "/usr/local/lib/python2.7/dist-packages/flask_mail.py", line 351, in send connection.send(self) File "/usr/local/lib/python2.7/dist-packages/flask_mail.py", line 168, in send message.as_string()) File "/usr/lib/python2.7/smtplib.py", line 731, in sendmail raise SMTPSenderRefused(code, resp, from_addr) SMTPSenderRefused: (530, '5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError y15sm144118820pgc.43 - gsmtp', 'Flasky Admin <[email protected]>')
Why it is refused? How to solve it? Thank youvert much.
from microblog.
And did you see the error message that gmail is giving you?
SMTPSenderRefused(code, resp, from_addr) SMTPSenderRefused: (530, '5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError y15sm144118820pgc.43 - gsmtp
from microblog.
Related Issues (20)
- Member redis is unknown HOT 2
- Chapter 14 Translations fail unless the destination language is explicitly specified
- Chapter 22 Export task stuck at 0% HOT 5
- elastic_transport.ConnectionError when post is submitted? HOT 6
- Language inconsistency during poedit translation process? HOT 7
- Using JinJa2 filter function truncate to implement 'Read more'? HOT 21
- Bug in lesson 5 due to werkzeug.urls - url parsing removed HOT 4
- Lesson 6, FLASK_ENV is removed from Flask 2.3.0 HOT 2
- Unable to load celery application. 'str' object has no attribute 'level' when Integrating Celery with Flask? HOT 17
- Unable to import 'url_parse' from 'werkzeug.urls' in flask shell execution HOT 15
- login error was reported during deployment? HOT 7
- Github links in chapters start with wrong tag (one-off) HOT 2
- Dead link to flask-babel docs HOT 1
- flask_moment error when trying to format HOT 4
- Multidict Package Problematic in python:slim HOT 1
- next HOT 3
- Error: Cannot import name 'app' from 'app' HOT 2
- Exporting a huge number of database records HOT 3
- ImportError...circular import HOT 3
- Chp 4 udemy course: Video 27 Time 1 min: db.sessions.add(u) Generates Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microblog.