summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_mail.class4
1 files changed, 3 insertions, 1 deletions
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);
}