Commits

danjac  committed cbe6896

fix for #5

  • Participants
  • Parent commits a3923c6

Comments (0)

Files changed (1)

File flaskext/mail/__init__.py

         self.fail_silently = app.config.get('MAIL_FAIL_SILENTLY', True)
 
         self.suppress = self.suppress or app.testing
-        
         self.app = app
 
+        # register extension with app
+        app.extensions = getattr(app, 'extensions', {})
+        app.extensions['mail'] = self
+
+
     @contextmanager
     def record_messages(self):
         """