summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2006-11-18 10:39:36 +0000
committerarun <arun>2006-11-18 10:39:36 +0000
commit6a55a6322bbba5f50eedcb8681ddd3112d557d5d (patch)
treec2ef65a9b6a5770539068af7a47d00cfc264e95c
parente923da994ca9e050fc404f267f10d0fff1fb080a (diff)
downloade-DoKo-6a55a6322bbba5f50eedcb8681ddd3112d557d5d.tar.gz
e-DoKo-6a55a6322bbba5f50eedcb8681ddd3112d557d5d.tar.bz2
e-DoKo-6a55a6322bbba5f50eedcb8681ddd3112d557d5d.zip
adding email test for nubati.net
-rw-r--r--index.php23
1 files 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 <br>";
- echo "<a href=\"index.php?a=hash1\"> player 1</a> <br />";
- echo "<a href=\"index.php?a=hash2\"> player 2</a> <br />";
- echo "<a href=\"index.php?a=hash3\"> player 3</a> <br />";
- echo "<a href=\"index.php?a=hash4\"> player 4</a> <br />";
+
+ $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)
{
?>
- <p> no game in progress, please input 4 names and email addresses </p>
+ <p> no game in progress, please input 4 names and email addresses, please make sure that the addresses are correct! </p>
<form action="index.php" method="post">
Name: <input name="PlayerA" type="text" size="10" maxlength="20" />
Email: <input name="EmailA" type="text" size="10" maxlength="20" /> <br />