summaryrefslogtreecommitdiffstats
path: root/functions.php
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2007-05-22 09:49:07 +0000
committerarun <arun>2007-05-22 09:49:07 +0000
commit0703a75b3d53fd28f21f3dbabf2c1630da46bd2c (patch)
tree3ddc45eb25738da7a7b9d991461b8d2e15b4ed05 /functions.php
parent12cfb198f8d644e370d646a7c42b37291a466089 (diff)
downloade-DoKo-0703a75b3d53fd28f21f3dbabf2c1630da46bd2c.tar.gz
e-DoKo-0703a75b3d53fd28f21f3dbabf2c1630da46bd2c.tar.bz2
e-DoKo-0703a75b3d53fd28f21f3dbabf2c1630da46bd2c.zip
feature: added link to game in final email, CC'ed people in final email
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 75f1fed..f33dd1c 100644
--- a/functions.php
+++ b/functions.php
@@ -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;
}