summaryrefslogtreecommitdiffstats
path: root/include/newgame.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-04-29 21:34:16 -0700
committerArun Persaud <arun@nubati.net>2009-04-29 21:34:16 -0700
commit03d6cd5ba13a0aac918734c1f797df4f149d9194 (patch)
tree852592c3d2f189d283cb1106bc4e4f67949a05e7 /include/newgame.php
parent26bcd1e5b01ca8575b513e12ce7bdd302614273c (diff)
downloade-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.tar.gz
e-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.tar.bz2
e-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.zip
CLEANUP: all email now uses the standard header and footer
some email functions didn't use myemail, but used sendmail directly. This is now fixed and all emails should have the same header and footer.
Diffstat (limited to 'include/newgame.php')
-rw-r--r--include/newgame.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/newgame.php b/include/newgame.php
index 4ce13cb..7d77612 100644
--- a/include/newgame.php
+++ b/include/newgame.php
@@ -170,8 +170,7 @@ else
DB_query("INSERT INTO Hand_Card VALUES (NULL, '$hand_idD', '".$randomNR[$i]."', 'false')");
/* send out email, TODO: check for error with email */
- $message = "\n".
- "you are invited to play a game of DoKo.\n".
+ $message = "You are invited to play a game of DoKo.\n".
"Please, place comments and bug reports here:\n".
"http://wiki.nubati.net/index.php?title=EmailDoko\n\n".
"The whole round would consist of the following players:\n".
@@ -183,10 +182,10 @@ else
"".$HOST.$INDEX."?action=game&me=";
$subject = 'You are invited to a game of DoKo (game '.DB_format_gameid($gameid).')';
- sendmail($EmailA,$subject, "Hello $PlayerA,\n".$message.$hashA);
- sendmail($EmailB,$subject, "Hello $PlayerB,\n".$message.$hashB);
- sendmail($EmailC,$subject, "Hello $PlayerC,\n".$message.$hashC);
- sendmail($EmailD,$subject, "Hello $PlayerD,\n".$message.$hashD);
+ mymail($useridA,$subject, $message.$hashA);
+ mymail($useridB,$subject, $message.$hashB);
+ mymail($useridC,$subject, $message.$hashC);
+ mymail($useridD,$subject, $message.$hashD);
echo "<div class=\"message\">You started a new game. The emails have been sent out!</div>\n";
display_user_menu($myid);