From 6a55a6322bbba5f50eedcb8681ddd3112d557d5d Mon Sep 17 00:00:00 2001 From: arun Date: Sat, 18 Nov 2006 10:39:36 +0000 Subject: adding email test for nubati.net --- index.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 0be1deb..306756c 100644 --- a/index.php +++ b/index.php @@ -256,12 +256,21 @@ if( isset($_REQUEST["PlayerA"]) && $EmailD = $_REQUEST["EmailD"] ; /* send out email, check for error with email */ - echo "send out emails to everyone, asking if they want to join"; - echo "use link
"; - echo " player 1
"; - echo " player 2
"; - echo " player 3
"; - echo " player 4
"; + + $message = "\n". + "you are invited to play a game of DoKo.\n". + "The whole round would consist of the following players:\n". + "$PlayerA\n". + "$PlayerB\n". + "$PlayerC\n". + "$PlayerD\n\n". + "If you want to join this game, please follow this link:\n\n". + " http://doko.nubati.net/index.php?a=hash"; + + mail($EmailA,"Invite for a game of DoKo","Hello $PlayerA,\n".$message."1"); + mail($EmailB,"Invite for a game of DoKo","Hello $PlayerB,\n".$message."2"); + mail($EmailC,"Invite for a game of DoKo","Hello $PlayerC,\n".$message."3"); + mail($EmailD,"Invite for a game of DoKo","Hello $PlayerD,\n".$message."4"); /* read in random.txt */ if(file_exists("random.txt")) @@ -309,7 +318,7 @@ if( isset($_REQUEST["PlayerA"]) && if(sizeof($lines)<2) { ?> -

no game in progress, please input 4 names and email addresses

+

no game in progress, please input 4 names and email addresses, please make sure that the addresses are correct!

Name: Email:
-- cgit v1.2.3-18-g5258