added some more hints for what kind of game is happening at the table; cleanup
[e-DoKo.git] / functions.php
index 75f1fedc28622bc962d5c56c9ab750f39a2278c2..f33dd1c19b128a29bc0373495c100d6c34f5c240 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-function mymail($To,$Subject,$message)
+function mymail($To,$Subject,$message,$header="")
 {  
   global $debug;
 
@@ -11,10 +11,16 @@ function mymail($To,$Subject,$message)
                      "<a href=\"\\0\">\\0</a>", $message);
       //$message = ereg_replace("(http.*)[ <>]","<a href=\"\\1\">\\1 </a>",$message);
       
-      echo "<br />To: $To<br />Subject: $Subject <br />$message<br />\n";
+      echo "<br />To: $To<br />";
+      if($header != "") 
+       echo $header."<br />";
+      echo "Subject: $Subject <br />$message<br />\n";
     }
   else
-    mail($To,$Subject,$message);
+    if($header != "")
+      mail($To,$Subject,$message,$header);
+    else
+      mail($To,$Subject,$message);
   return;
 }