diff --git a/app/__init__.py b/app/__init__.py index efe36df..67a7413 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -251,9 +251,11 @@ def register_settings(app): 'MAIL_SERVER', app.config['MAIL_SERVER'] ) - app.config['MAIL_PORT'] = os.getenv( + app.config['MAIL_PORT'] = int( + os.getenv( 'MAIL_USE_SSL', app.config['MAIL_PORT'] + ) ) app.config['MAIL_USE_SSL'] = os.getenv( 'MAIL_USE_SSL',