From 03d6cd5ba13a0aac918734c1f797df4f149d9194 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Wed, 29 Apr 2009 21:34:16 -0700 Subject: 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. --- include/newgame.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include/newgame.php') 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 "
You started a new game. The emails have been sent out!
\n"; display_user_menu($myid); -- cgit v1.2.3-18-g5258