From 19f7b70d0b79cf75bf47843389ba4d39379e8b76 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 8 Oct 2007 18:53:18 +0000 Subject: reverted: it::mail it mail() based too --- it.class | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/it.class b/it.class index 0c83e53..aaae945 100644 --- a/it.class +++ b/it.class @@ -198,10 +198,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate $body .= $trace ? "Stack: " . print_r(debug_backtrace(), true) . "\n\n" : ""; $pwentry = posix_getpwuid(posix_getuid()); - $from = $pwentry['name'] ? $pwentry['name'] : posix_getuid(); - $mail = new it_mail(array('To' => $p['to'], 'From' => $from, 'Subject' => $p['title'])); - $mail->add_body($body); - $mail->send(); + mail($p['to'], $p['title'], $body, "From: " . $pwentry['name'] ? $pwentry['name'] : posix_getuid()); } else if ($_SERVER['REMOTE_ADDR']) # in shell mode we rely on error_log below echo "
{$p['title']}\n$body"; -- cgit v1.2.3