From 42d766dc21efe81825c75507583015eae3990cc9 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 30 Dec 2008 14:11:50 +0000 Subject: nomail debug param --- it_mail.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'it_mail.class') diff --git a/it_mail.class b/it_mail.class index 8dcb660..0eb7643 100644 --- a/it_mail.class +++ b/it_mail.class @@ -285,7 +285,9 @@ function send() $text .= "--$boundary1--\n"; } - return mail($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); + $func = EDC('nomail') ? "ED" : "mail"; + + return $func($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); } -- cgit v1.2.3