cvs: php-master-web /entry user-note.php
| From: | Mehdi Achour | Date: | Thu, 04 Sep 2003 12:42:07 +0000 |
| Subject: | cvs: php-master-web /entry user-note.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20769@lists.php.net to get a copy of this message | ||
didou Thu Sep 4 08:42:07 2003 EDT
Modified files:
/php-master-web/entry user-note.php
Log:
debugging the notes system
Index: php-master-web/entry/user-note.php
diff -u php-master-web/entry/user-note.php:1.17 php-master-web/entry/user-note.php:1.18
--- php-master-web/entry/user-note.php:1.17 Tue May 20 07:30:29 2003
+++ php-master-web/entry/user-note.php Thu Sep 4 08:42:07 2003
@@ -3,7 +3,8 @@
//require_once 'alert_lib.inc';
$mailto = 'php-notes@lists.php.net';
-$failto = 'jimw@php.net, alindeman@php.net';
+$failto = 'jimw@php.net, alindeman@php.net, didou@keliglia.com';
+$dbugto = 'didou@keliglia.com';
if (!isset($user) || empty($note) || empty($sect))
die("missing some parameters.");
@@ -57,6 +58,10 @@
//na = not approved. Don't display notes until they are approved by an editor
//This has been reverted until it has been discussed further.
+// testing the mail function
+mail($dbugto, "from user-note.php", "I'm ok !");
+
+
//echo "<!--$query-->\n";
if (@mysql_query($query)) {
$new_id = mysql_insert_id();
@@ -72,7 +77,9 @@
// see who requested an alert
// ** alerts **
//$mailto .= get_emails_for_sect($sect);
- mail($mailto,"note $new_id added to $sect",$msg,"From: $user\r\nMessage-ID:
<note-$new_id@php.net>");
+ if (!mail($mailto,"note $new_id added to $sect",$msg,"From: $user\r\nMessage-ID:
<note-$new_id@php.net>")) {
+ mail($dbugto, "mail() failed", $msg);
+ }
} else {
// mail it.
mail($failto,