def __init__(self, app, sender_email=None, sender_name=None):
        """Check config settings and setup Flask-Sendemail.

        Args:
            app(Flask): The Flask application instance.
        """

        super(SendmailEmailAdapter, self).__init__(app)

        # Setup Flask-Mail
        try:
            from flask_sendmail import Mail
        except ImportError:
            raise ConfigError(
                "The Flask-Sendmail package is missing. Install Flask-Sendmail with 'pip install Flask-Sendmail'.")
        self.mail = Mail(app)
def __init__ ( self , app , sender_email = None , sender_name = None ) : super ( SendmailEmailAdapter , self ) . __init__ ( app ) try : from flask_sendmail import Mail except ImportError : raise ConfigError ( "The Flask-Sendmail package is missing. Install Flask-Sendmail with 'pip install Flask-Sendmail'." ) self . mail = Mail ( app )
Check config settings and setup Flask-Sendemail.

        Args:
            app(Flask): The Flask application instance.