From 883b53c71bb726e7f16c21bf686ddcb734b208e6 Mon Sep 17 00:00:00 2001 From: james Date: Sun, 9 Dec 2007 20:47:44 +0000 Subject: [PATCH] Send new participant email on invitation by school to the contactemail as well as the student email --- schoolinvite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schoolinvite.php b/schoolinvite.php index 8fde7c6..57f111e 100644 --- a/schoolinvite.php +++ b/schoolinvite.php @@ -57,7 +57,9 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode']) '".mysql_escape_string($_POST['grade'])."', '".$config['FAIRYEAR']."')"); - email_send("new_participant",$_POST['email'],array("FAIRNAME"=>i18n($config['fairname'])),array("REGNUM"=>$regnum, "FAIRNAME"=>i18n($config['fairname']))); + email_send("new_participant",$_POST['email'],array("FAIRNAME"=>i18n($config['fairname'])),array("REGNUM"=>$regnum, "FAIRNAME"=>i18n($config['fairname']),"EMAIL"=>$_POST['email'])); + if($_POST['emailcontact']) + email_send("new_participant",$_POST['emailcontact'],array("FAIRNAME"=>i18n($config['fairname'])),array("REGNUM"=>$regnum, "FAIRNAME"=>i18n($config['fairname']),"EMAIL"=>$_POST['email'])); echo happy(i18n("The participant has been successfully invited")); } }