diff options
author | Urban Müller | 2007-10-08 18:53:18 +0000 |
---|---|---|
committer | Urban Müller | 2007-10-08 18:53:18 +0000 |
commit | 19f7b70d0b79cf75bf47843389ba4d39379e8b76 (patch) | |
tree | 130905f37b86fc59cf4ece3437e7a16f4fea3213 /it.class | |
parent | e1be1a203473712d6437627fb876bc78351b0e8f (diff) | |
download | itools-19f7b70d0b79cf75bf47843389ba4d39379e8b76.tar.gz itools-19f7b70d0b79cf75bf47843389ba4d39379e8b76.tar.bz2 itools-19f7b70d0b79cf75bf47843389ba4d39379e8b76.zip |
reverted: it::mail it mail() based too
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 "<pre>{$p['title']}\n$body</pre>"; |