From d661e260855977d34672388cfa8766de55a73f93 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Fri, 13 Feb 2009 23:40:26 -0800 Subject: CLEANUP: make emails more uniform provide a standard header and footer. Also prepare for emails to be send to the database for later delivery. --- include/newgame.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'include/newgame.php') diff --git a/include/newgame.php b/include/newgame.php index 40ab74d..4ce13cb 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -182,14 +182,11 @@ else "If you want to join this game, please follow this link:\n\n". "".$HOST.$INDEX."?action=game&me="; - mymail($EmailA,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")", - "Hello $PlayerA,\n".$message.$hashA); - mymail($EmailB,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")", - "Hello $PlayerB,\n".$message.$hashB); - mymail($EmailC,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")", - "Hello $PlayerC,\n".$message.$hashC); - mymail($EmailD,"$EmailName You are invited to a game of DoKo (game ".DB_format_gameid($gameid).")", - "Hello $PlayerD,\n".$message.$hashD); + $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); echo "
You started a new game. The emails have been sent out!
\n"; display_user_menu($myid); -- cgit v1.2.3-18-g5258