Notifications par email

Résolu/Fermé
sfc2000 - 14 juil. 2010 à 23:30
 sfc2000 - 15 juil. 2010 à 00:45
Bonjour,

J'ai script récupérer pour l'insertion de commentaire, je cherche à faire que quand quelqu un post un commentaire, je recois un email.

Le problème c'est que je sais pas trop comment faire....

Voici mon bout de code :

<form action="commentaire.<?php echo $php_extension; ?>" method="post" name="commentaire" onsubmit="return verif_form()">
		<b><?php echo $str_nom; ?> :</b></td>
		<td><input name="_recipients" type="hidden" value="mon email"><input type="text" name="auteur_form" value="<?php if ($cookie && $t_cookie[0] != '' && $action != 'ajouter') echo htmlspecialchars($t_cookie[0]); else echo htmlspecialchars($auteur_form); ?>" size=18 maxlength=14></td>
		
	</tr>
	<tr>
		<td><?php echo $str_email; ?> :</td>
		<td><input type="text" name="email_form" value="<?php if ($cookie && $t_cookie[1] != '' && $action != 'ajouter') echo $t_cookie[1]; else echo $email_form; ?>" size=18 maxlength=40></td>
	</tr>
	<tr>
		<td colspan=2><b><?php echo $str_commentaire; ?> :</b><br><textarea name="texte_form" cols=29 rows=5></textarea></td>
	</tr>
	<tr>
		<td align="center" colspan=2><input type="hidden" name="nom" value="<?php echo htmlspecialchars($nom); ?>"><input type="hidden" name="action" value="ajouter"><input type="submit" value="<?php echo $str_ajouter; ?>">


j'avais fais comme ca mais c'est pas bon...

Merci pour votre aide
A voir également:

2 réponses

avion-f16 Messages postés 19249 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 15 juin 2024 4 503
15 juil. 2010 à 00:32
0
Merci en fait j'avais zapper ca et m'en suis rappeler juste après avoir posté :-(

Merci et bonne soirée
0