diff --git a/ref-test/app/config.py b/ref-test/app/config.py index c965410..0d1ac88 100644 --- a/ref-test/app/config.py +++ b/ref-test/app/config.py @@ -15,16 +15,16 @@ class Config(object): SQLALCHEMY_TRACK_MODIFICATIONS = False MAIL_SERVER = os.getenv('MAIL_SERVER') - MAIL_PORT = int(os.getenv('MAIL_PORT')) + MAIL_PORT = int(os.getenv('MAIL_PORT') or 25) MAIL_USE_TLS = False MAIL_USE_SSL = False MAIL_DEBUG = False MAIL_USERNAME = os.getenv('MAIL_USERNAME') MAIL_PASSWORD = os.getenv('MAIL_PASSWORD') MAIL_DEFAULT_SENDER = os.getenv('MAIL_DEFAULT_SENDER') - MAIL_MAX_EMAILS = int(os.getenv('MAIL_MAX_EMAILS')) + MAIL_MAX_EMAILS = int(os.getenv('MAIL_MAX_EMAILS') or 25) MAIL_SUPPRESS_SEND = False - MAIL_ASCII_ATTACHMENTS = bool(os.getenv('MAIL_ASCII_ATTACHMENTS')) + MAIL_ASCII_ATTACHMENTS = bool(os.getenv('MAIL_ASCII_ATTACHMENTS') or True) class Production(Config): pass