def __init__(self, app):
        """
        Args:
            app(Flask): The Flask application instance.
        """
        self.app = app
        self.user_manager = app.user_manager
        self.sender_name = self.user_manager.USER_EMAIL_SENDER_NAME
        self.sender_email = self.user_manager.USER_EMAIL_SENDER_EMAIL

        # Ensure that USER_EMAIL_SENDER_EMAIL is set
        if not self.sender_email:
            raise ConfigError('Config setting USER_EMAIL_SENDER_EMAIL is missing.')

        # Simplistic email address verification
        if '@' not in self.sender_email:
            raise ConfigError('Config setting USER_EMAIL_SENDER_EMAIL is not a valid email address.')
def __init__ ( self , app ) : self . app = app self . user_manager = app . user_manager self . sender_name = self . user_manager . USER_EMAIL_SENDER_NAME self . sender_email = self . user_manager . USER_EMAIL_SENDER_EMAIL if not self . sender_email : raise ConfigError ( 'Config setting USER_EMAIL_SENDER_EMAIL is missing.' ) if '@' not in self . sender_email : raise ConfigError ( 'Config setting USER_EMAIL_SENDER_EMAIL is not a valid email address.' )
Args:
            app(Flask): The Flask application instance.