From 7cc8afc5c9a49dce391d786edf521d86f158de0f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 25 Aug 2011 14:32:36 +0000 Subject: more info in subject (in case sending of error mail fails, too) --- it_mail.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_mail.class') diff --git a/it_mail.class b/it_mail.class index 81a282f..dafd704 100644 --- a/it_mail.class +++ b/it_mail.class @@ -289,7 +289,7 @@ function send() if (it::is_live() || EDC('forcemail')) { if (($result = mail($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags)) === false) - it::error(array('title' => 'failed sending mail', 'body' => D($to, $this->header_escape($this->subject), $text, $headers, $this->flags))); + it::error(array('title' => "failed sending mail to $to subject $this->subject", 'body' => D($text, $headers, $this->flags))); return $result; } else -- cgit v1.2.3