je pense avoir trouvé mais cela ne semble pas fonctionner, free refuse mail()?
Voici les codes:
Me_contacter.php
<BR><BR><div align=center>
<form method=POST
action=rubriques.php?article=envoimailauwebmaster>
<input type=hidden name=subject value=formmail>
<table>
<tr><td>Votre Nom:</td>
<td><input type=text name=realname size=30></td></tr>
<tr><td>Votre Email:</td>
<td><input type=text name=email size=30></td></tr>
<tr><td>Sujet:</td>
<td><input type=text name=title size=30></td></tr>
<tr><td colspan=2>Commentaires:<br>
<textarea COLS=50 ROWS=6 name=comments></textarea>
</td></tr>
</table>
<br> <input type=submit value=Envoyer> -
<input type=reset value=Annuler>
</form>
</div>
et sur envoimailauwebmaster.php
<?php
$TO = "jlmk54@hotmail.com";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
//Header("Location: articles/remerciement.php");
//include (´remerciement.php´);
?>
<BR><BR>
<h1 class="test">
Merci de m´avoir envoyé un mail. Vous recevrez très prochainement une réponse.
<BR><BR>A très bientôt et bonne visite sur Alternativ Loisirs.
<BR><BR>
<img SRC="<? echo "$rep_image"; ?> smilies.jpg" height=150 width=200>
<BR><BR>
</h1>