Fix for the change of Flask-Mail