diff --git a/tailbone/views/email.py b/tailbone/views/email.py index 7b46f490..42f05c90 100644 --- a/tailbone/views/email.py +++ b/tailbone/views/email.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -85,7 +85,7 @@ class EmailSettingView(MasterView): def get_handler(self): app = self.get_rattail_app() - return app.get_mail_handler() + return app.get_email_handler() def get_data(self, session=None): data = [] @@ -292,7 +292,7 @@ class EmailPreview(View): def get_handler(self): app = self.get_rattail_app() - return app.get_mail_handler() + return app.get_email_handler() def __call__(self): diff --git a/tailbone/views/reports.py b/tailbone/views/reports.py index e2aa3db6..2839c5b5 100644 --- a/tailbone/views/reports.py +++ b/tailbone/views/reports.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -585,7 +585,7 @@ class ProblemReportView(MasterView): } app = self.get_rattail_app() - handler = app.get_mail_handler() + handler = app.get_email_handler() email = handler.get_email(data['email_key']) data['email_recipients'] = email.get_recips('all')