Revert "Prepare config for mailgun"

This reverts commit eb6b3ec34e.
develop
esensar 2018-10-22 19:47:44 +02:00
parent fd398dfb7f
commit 2c369d6208
2 changed files with 4 additions and 8 deletions

4
.env
View File

@ -6,7 +6,3 @@ MQTT_CLIENT=local
APP_MAIL_USERNAME=final.iot.backend.mailer@gmail.com
APP_MAIL_PASSWORD=FinalIoT1234
FLASK_ENV=development
MAILGUN_SMTP_SERVER=smtp.googlemail.com
MAILGUN_SMPT_PORT=465
MAILGUN_SMPT_LOGIN=final.iot.backend.mailer@gmail.com
MAILGUN_SMPT_PASSWORD=FinalIoT1234

View File

@ -42,15 +42,15 @@ CELERY_BROKER_URL = os.environ['REDIS_URL']
CELERY_RESULT_BACKEND = os.environ['REDIS_URL']
# Mailer config
MAIL_SERVER = os.environ['MAILGUN_SMTP_SERVER']
MAIL_PORT = os.environ['MAILGUN_SMTP_PORT']
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 465
MAIL_USE_TLS = False
MAIL_USE_SSL = True
MAIL_DEBUG = False
# gmail authentication
MAIL_USERNAME = os.environ['MAILGUN_SMTP_LOGIN']
MAIL_PASSWORD = os.environ['MAILGUN_SMTP_PASSWORD']
MAIL_USERNAME = os.environ['APP_MAIL_USERNAME']
MAIL_PASSWORD = os.environ['APP_MAIL_PASSWORD']
# mail accounts
MAIL_DEFAULT_SENDER = 'final.iot.backend.mailer@gmail.com'