Problème avec un script php
Dernière réponse : dans Programmation
Bon salut,
j'ai un prob avec se script.... tout fonctionne sauf que je ne reçois aucun email
s.v.p j'aimerais avoir de l'aide
voilà le script
<form method=POST action=formmail.php >
<input type=hidden name=subject value=formmail>
<table>
<tr><td><span class="Style5">Votre Nom:</span></td>
<td><input type=text name=realname size=30></td></tr>
<tr><td><span class="Style6">Votre Email:</span></td>
<td><input type=text name=email size=30></td></tr>
<tr><td><span class="Style6">Sujet:</span></td>
<td><input type=text name=title size=30></td></tr>
<tr><td colspan=2><span class="Style6">Commentaires ou question:</span><br>
<textarea COLS=50 ROWS=6 name=comments></textarea>
</td>
</tr>
</table>
<br> <input type=submit value=Envoyer> -
<input type=reset value=Annuler>
</form>
Et voici le script PHP :
<?php
$TO = "zazoo_fire55@hotmail.com";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
echo "<HTML><HEAD>";
echo "<TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Merci! $sender_name</H1>";
echo "<P align=center>";
echo "Tes questions ou commentaîre ont été reçus!.</P>";
echo "</BODY></HTML>";
?>
Une réponse sur mon prob serait grandement aprécier
Désolé pour mon orthographe!!!
j'ai un prob avec se script.... tout fonctionne sauf que je ne reçois aucun email
s.v.p j'aimerais avoir de l'aidevoilà le script
<form method=POST action=formmail.php >
<input type=hidden name=subject value=formmail>
<table>
<tr><td><span class="Style5">Votre Nom:</span></td>
<td><input type=text name=realname size=30></td></tr>
<tr><td><span class="Style6">Votre Email:</span></td>
<td><input type=text name=email size=30></td></tr>
<tr><td><span class="Style6">Sujet:</span></td>
<td><input type=text name=title size=30></td></tr>
<tr><td colspan=2><span class="Style6">Commentaires ou question:</span><br>
<textarea COLS=50 ROWS=6 name=comments></textarea>
</td>
</tr>
</table>
<br> <input type=submit value=Envoyer> -
<input type=reset value=Annuler>
</form>
Et voici le script PHP :
<?php
$TO = "zazoo_fire55@hotmail.com";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
echo "<HTML><HEAD>";
echo "<TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Merci! $sender_name</H1>";
echo "<P align=center>";
echo "Tes questions ou commentaîre ont été reçus!.</P>";
echo "</BODY></HTML>";
?>
Une réponse sur mon prob serait grandement aprécier
Désolé pour mon orthographe!!!
Autres pages sur : probleme script php
Lassé par la pub ? Créez un compte
Bon je viens d'aller chercher ma fonction d'envoit de mail que j'utilise .
public function mailInscription($pseudo,$password,$email)
{
$headers ='From: "Admin CEI"<isat.ream@gmail.com>'."\n";
$headers .='Reply-To: isat.ream@gmail.com'."\n";
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
$message ='<html><head><title></title></head><body><center>';
$message .= '<p>Bienvenue sur le site de la communauté de Etudiante de l\'IsaT </p>
<p>Votre inscription a bien été prise en compte.</p><br />
<p>Identifiant :'.$pseudo.'</p>
<p>Mot de passe :'.$password.'</p>
<p>Pour activer votre compte : <a href="http://localhost/CEI/login/auth.php?user='.$pseudo.'&mdp='.md5($password).'">clique ici</a></p>
';
$message .='</center></body></html>';
if(mail($email,'Inscription CEI',$message,$headers))return true;
else return false;
}
Essaye de l'adapter.
Citation :
public function mailInscription($pseudo,$password,$email)
{
$headers ='From: "Admin CEI"<isat.ream@gmail.com>'."\n";
$headers .='Reply-To: isat.ream@gmail.com'."\n";
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
$message ='<html><head><title></title></head><body><center>';
$message .= '<p>Bienvenue sur le site de la communauté de Etudiante de l\'IsaT </p>
<p>Votre inscription a bien été prise en compte.</p><br />
<p>Identifiant :'.$pseudo.'</p>
<p>Mot de passe :'.$password.'</p>
<p>Pour activer votre compte : <a href="http://localhost/CEI/login/auth.php?user='.$pseudo.'&mdp='.md5($password).'">clique ici</a></p>
';
$message .='</center></body></html>';
if(mail($email,'Inscription CEI',$message,$headers))return true;
else return false;
}
Essaye de l'adapter.
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumCron probleme d'execution de script php
- ForumScript php qui genere des pages php
- ForumProblème de script
- ForumScript bash et script php
- ForumProbleme script php redirection
- ForumAppeler un script php dans script shell
- ForumPhp recuperer erreurs script php
- ForumProbleme script php xajax pour rafraichire
- ForumScript php de script d'appels
- ForumProbleme mysql script php
- Voir plus