From e247526ba388ce3def4f83ad8fb26852082bb7dd Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 30 Jun 2018 10:43:53 +0200 Subject: Version alpha_old3 2007-02-22+15:12:38 - 2007-02-27+20:02:20 --- appli_3_alpha_old/sendmail.php | 101 +++++++++++++++++++++++++++++++---------- 1 file changed, 78 insertions(+), 23 deletions(-) (limited to 'appli_3_alpha_old/sendmail.php') diff --git a/appli_3_alpha_old/sendmail.php b/appli_3_alpha_old/sendmail.php index e739884..631fa99 100644 --- a/appli_3_alpha_old/sendmail.php +++ b/appli_3_alpha_old/sendmail.php @@ -17,24 +17,74 @@ generate_html_divs_menu();

';
-	print_r($_REQUEST);	
-	echo '';
-	exit();
+	$idR=addslashes($_POST['idR']);
 }
-
-if( isset($_GET['idR']) )
+else
 {
-	$idR=addslashes($_GET['idR']);
+?>
+	
+ Erreur lors de l'émission de l'email : Paramètre manquant ou érroné +
+"; + } + $to=implode(', ',$to); + + + if ( ! mail ( $to, $_POST['msgObject'], $_POST['msgText'], 'From: ' . $CONFIG['automatedMail'] . "\r\n" ) ) + { + $errmsg = "Erreur lors de l'émission de l'email : Erreur inconnue"; + } + } + } + } + + if ( isset($errmsg) ) + { + echo '
' . $errmsg .'
'; + } + else + { + echo '
Le courriel à bien été envoyé
'; + } + exit(); } + $result = mysql_query("SELECT idL FROM Reunion WHERE idR='$idR'"); if (mysql_num_rows($result)===1) { @@ -46,16 +96,16 @@ else } -if ( isset($errmsg) ) + if ( isset($errmsg) ) { - echo '
' . $errmsg .'
'; + echo '
' . $errmsg .'
'; exit(); } ?>
-
+ @@ -77,11 +127,12 @@ if ( isset($errmsg) ) { list($idP, $courrielP, $nomP, $prenomP) = mysql_fetch_array($result); $personnes[$idP]=array($courrielP, $nomP, $prenomP); - echo '\n"; } } + ?> @@ -96,9 +147,9 @@ if ( isset($errmsg) ) $p) { - if ( isset($_GET['mail_idP' . $idP] ) ) + if ( isset($_POST['mail_idP' . $idP] ) ) { - echo '\n"; } @@ -110,24 +161,28 @@ if ( isset($errmsg) )
- Modèle :  + Modèle :  \n"; + echo $idR . "&model=','modelsList','divMsg');\">\n"; ?> - - - - + + + +
Objet :  +
+ ' . "\n"; + ?>
-- cgit v1.2.3