Allow use of mail servers besides Gmail.
This commit is contained in:
parent
8fbac9cc23
commit
b9ab682d18
2 changed files with 2 additions and 1 deletions
1
env
1
env
|
@ -25,6 +25,7 @@ DISABLE_DOWNVOTES=0
|
|||
DUES=10
|
||||
DEFAULT_THEME=midnight
|
||||
DEFAULT_COLOR=ff66ac
|
||||
MAIL_SERVER=smtp.gmail.com
|
||||
MAIL_USERNAME=blahblahblah@gmail.com
|
||||
MAIL_PASSWORD=blahblahblah
|
||||
DESCRIPTION=DESCRIPTION GOES HERE
|
||||
|
|
|
@ -51,7 +51,7 @@ app.config["COMMENT_SPAM_SIMILAR_THRESHOLD"] = float(environ.get("COMMENT_SPAM_S
|
|||
app.config["COMMENT_SPAM_COUNT_THRESHOLD"] = int(environ.get("COMMENT_SPAM_COUNT_THRESHOLD", 10))
|
||||
app.config["CACHE_TYPE"] = "RedisCache"
|
||||
app.config["CACHE_REDIS_URL"] = environ.get("REDIS_URL", "redis://localhost")
|
||||
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
|
||||
app.config['MAIL_SERVER'] = environ.get("MAIL_SERVER", "").strip()
|
||||
app.config['MAIL_PORT'] = 587
|
||||
app.config['MAIL_USE_TLS'] = True
|
||||
app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME", "").strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue