diff --git a/CHANGES.rst b/CHANGES.rst index 858a5581f9..d911f79175 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ Changelog **Added** +- #1422 Notify user with failing addresses when emailing of results reports - #1420 Allow to detach a partition from its primary sample - #1410 Email API diff --git a/bika/lims/browser/publish/emailview.py b/bika/lims/browser/publish/emailview.py index fa216bc4ca..6755e2d4b6 100644 --- a/bika/lims/browser/publish/emailview.py +++ b/bika/lims/browser/publish/emailview.py @@ -510,7 +510,10 @@ def send_email(self, recipients, subject, body, attachments=None): attachments=attachments) sent = mailapi.send_email(mime_msg) if not sent: - logger.error("Could not send email to {}".format(pair)) + msg = _("Could not send email to {0} ({1})").format(pair[0], + pair[1]) + self.add_status_message(msg, "warning") + logger.error(msg) success.append(sent) if not all(success):