When sending documents by email, the email address follows the status message.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 7 Dec 2011 23:46:04 +0000 (00:46 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 7 Dec 2011 23:46:04 +0000 (00:46 +0100)
reporting/includes/pdf_report.inc

index 91e6437c1078dabd42698b7ddf55ed39d636dcad..e4b4c3a66c58d398e630aeec436fb847ff90c37b 100644 (file)
@@ -1025,10 +1025,11 @@ class FrontReport extends Cpdf
                                        if (!$try) {
                                                display_error(_("There is no contact email set for this document type."));
                                        } elseif (!$sent)
-                                               display_error(_("Sending document by email failed"));
+                                               display_error($this->title . " " . $this->formData['document_number'] . ". "
+                                                       . _("Sending document by email failed") . ". " . _("Email:") . " " . $contact['email']);
                                        else
                                                display_notification($this->title . " " . $this->formData['document_number'] . " " 
-                                                       . _("has been sent by email to destination."));
+                                                       . _("has been sent by email to destination.") . " " . _("Email:") . " " . $contact['email']);
                                }
                        }
                        else