def connect(self):
        """Opens a connection to the mail host."""
        app = getattr(self, "app", None) or current_app
        try:
            return Connection(app.extensions['mail'])
        except __HOLE__:
            raise RuntimeError("The curent application was not configured with Flask-Mail")
dataset/ETHPy150Open mattupstate/flask-mail/flask_mail.py/_MailMixin.connect