Comments (4)
Which app is giving you that notification?
If you use gmail as your mail server, it comes pre-configured to send mail with TLS enabled which can be seen here: https://github.com/nickjj/build-a-saas-app-with-flask/blob/master/config/settings.py#L89.
You might get that warning if you try to send mail to a recipient whose mail server does not support TLS, in which case this isn't a limitation of catwatch or gmail.
from build-a-saas-app-with-flask.
This is when I try to send an email from the Catwatch flask app (issue contact email, forget password email)
Here are the current email settings
# Mail settings.
MAIL_DEFAULT_SENDER = '<GMAIL USER>@gmail.com'
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = '<GMAIL USER>@gmail.com'
MAIL_PASSWORD = '<GMAIL PASSWORD>'
If I allow 'Less Secure Apps' in my Gmail settings the email sends without issue though I'd rather avoid allowing less secure apps in the Gmail settings
from build-a-saas-app-with-flask.
The Flask-Mail extension (the package powering e-mail in catwatch) doesn't support OAuth 2 which is the only transport method that would allow you to run it without enabling "less secure apps".
https://security.googleblog.com/2014/04/new-security-measures-will-affect-older.html
@miguelgrinberg has a good write up here explaining why: miguelgrinberg/flasky#65 (comment)
from build-a-saas-app-with-flask.
This clarifies things, thanks
from build-a-saas-app-with-flask.
Related Issues (20)
- error at installing requirements.txt HOT 15
- Illegal instruction: 4 HOT 8
- Several questions for solution evaluation HOT 6
- Revisiting OS X Postgres permissions issue HOT 15
- Internal sever error and db reset issue on Mac HOT 3
- Error importing module add: HOT 12
- Error importing module db: HOT 5
- Getting blank responses from cat watch HOT 44
- Cannot access admin page HOT 2
- CSRF problem HOT 17
- Adding Custom CSS and JS HOT 9
- Getting a ImportError when running with docker compose HOT 4
- redis need a version bump HOT 3
- gunicorn does not run on windows HOT 2
- ERROR when building HOT 4
- celery-beat KeyError 'Scheduler' HOT 16
- how can i configure postgresql over here can you help me out HOT 1
- ImportError: No module named abc HOT 2
- FLASK_ENV error in build HOT 10
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 build-a-saas-app-with-flask.