HEEELP PB reception mail avec formulaire php

Résolu/Fermé
laure - 1 juil. 2009 à 11:06
Yohan85 Messages postés 280 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 16 mai 2011 - 1 juil. 2009 à 11:40
Bonjour,
J'ai créé un site web avec dreamweaver et j'ai une page formulaire en html; code:


<form action="devis.php" method="post" enctype="application/x-www-form-urlencoded" name="devis" id="devis">
<label></label>
<table width="631">
<tr align="center">
<th colspan="2" scope="row"><p align="center" class="Style22 Style3">Demandez votre <span class="Style4">Spectacle Clé en Main</span></p> </th>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Nom</span></div></th>
<td><label>
<div align="center">
<input name="nom" type="text" id="nom" />
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Prénom</span></div></th>
<td><label>
<div align="center">
<input name="prenom" type="text" id="prenom" />
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Adresse</span></div></th>
<td><label>
<div align="center">
<textarea name="adresse" id="adresse"></textarea>
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Tel</span></div></th>
<td><label>
<div align="center">
<input name="tel" type="text" id="tel" />
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Mail</span></div></th>
<td><label>
<div align="center">
<input name="mail" type="text" id="mail" />
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center">Prestation Demandée</div></th>
<td><label>
<div align="center">
<textarea name="prestation demandee" rows="5" id="prestation demandee"></textarea>
</div>
</label></td>
</tr>
<tr>
<th align="center" scope="row"><div align="center"><span class="Style20">Budget</span></div></th>
<td><label>
<div align="center">
<input name="budget" type="text" id="budget" />
</div>
</label></td>
</tr>
<tr align="center">
<th height="37" colspan="2" scope="row"><div align="center">
<input type="submit" value="Envoyer">
</div>
<span class="Style20"><label>
<div align="center"></div>
</label>
</span></th>

</form>


et une page php ; codes

<?php
// Récupération des données via POST
$nom=$_POST['nom'];
$prenom=$_POST['prenom'];
$adresse=$_POST['adresse'];
$tel=$_POST['tel'];
$mail=$_POST['mail'];
$prestation_demandee=$_POST['prestation_demandee'];
$budget=$_POST['budget'];



//Envoi des données
$message='Nom: '.$nom.'\nPrénom: '.$prenom.'\nAdresse: '.$adresse.'\n\nTéléphone: '.$tel.'\nMail: '.$mail.'\nPrestation demandée: '.$prestationdemandee.'\nBudget: '.$budget;
mail("marine.calypso@gmail.com;eva.calypso@gmail.com","Devis", $message);

header("Location: pagemerci.html");
?>


Une fois le formulaire rempli, une page de remerciement s'ouvre; Tout fonctionne mais je ne reçoit pas de mail!!!

HELP
A voir également:

2 réponses

Yohan85 Messages postés 280 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 16 mai 2011 25
1 juil. 2009 à 11:31
il y a une erreur dans votre fonction mail()

Vous devez utiliser :

$to  = 'marine.calypso@gmail.com' . ', '; // notez la virgule
$to .= 'eva.calypso@gmail.com';

mail($to,"Devis", $message); 



Cordialement,

Yohan
0
yeees!
super merci!
bonne journée
0
Yohan85 Messages postés 280 Date d'inscription samedi 7 avril 2007 Statut Membre Dernière intervention 16 mai 2011 25
1 juil. 2009 à 11:40
De rien.

N'oubliez pas de passer le topic en mode résolu ;)

Cdt,

Yohan
0