Ajout mail de debuggage lors du passage d'une commande

This commit is contained in:
Michael RICOIS 2009-10-09 09:59:06 +00:00
parent 283e49d8d8
commit 8d5e7c0b1f

View File

@ -50,7 +50,24 @@ $firephp->log('Soumission formulaire');
$message.= '</font>';
}else{
$commandeOk = setEnquete($pays);
}//Fin Erreur formulaire
require_once 'phpmailer/class.phpmailer.php';
$mail = new PHPMailer();
$mail->From = "contact@scores-decisions.com";
$mail->FromName = "Serveur SD-13408";
$mail->Host = "mail.scores-decisions.com";
$mail->Mailer = "smtp";
$mail->Subject = "DEBUG - Commandes de rapport graydon";
$body = "Commandes\n";
$body .= "Utilisateur :\n";
$body .= print_r($REQUEST['InfoUser']);
$body .= "\n";
$body .= "Enquêtes : \n";
$body .= print_r($REQUEST['InfoEnq']);
$body .= "\n";
$mail->MsgHTML($body);
$mail->AddAddress(EMAIL_SUPPORTDEV, "Support");
$mail->Send();
}
}
?>
<style>