diff options
Diffstat (limited to 'it_mail.class')
-rw-r--r-- | it_mail.class | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/it_mail.class b/it_mail.class index 0995e49..49326b7 100644 --- a/it_mail.class +++ b/it_mail.class @@ -286,9 +286,10 @@ function send() $text .= "--$boundary1--\n"; } - $func = it::is_live() ? "mail" : "ED"; - - return $func($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); + if (it::is_live()) + return mail($to, $this->header_escape($this->subject), $text, join("\n", $headers), $this->flags); + else + return ED($to, $this->header_escape($this->subject), $text, $headers, $this->flags); } |