par
Sumacnaj » 07 mai 2007, 17:01
En fait, je n'ai pas de $message, mon adresse mail est inscrite directement dans mon html, il me bascule un mail avec une pièce jointe POSTDATA.ATT et ce fichier contient les réponses mais elles sont toutes collées les unes à la suite des autres. Ci-dessous mon codage :
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>TEST MAIL</title>
</head>
<body>
<br>
<br>
<form method="post" action="mailto:[email protected]"><br>
<span style="font-weight: bold;"><br>
</span>
<div style="margin-left: 40px;"><span
style="font-weight: bold;">Merci de remplir les
différents champs</span><br>
<span style="font-weight: bold;"></span></div>
<span style="font-weight: bold;"><br>
</span>
<table border="0">
<tbody>
<tr>
<td>Nom</td>
<td>
<input name="nom" type="text"></td>
</tr>
<tr>
<td>Prénom</td>
<td>
<input name="prenom" type="text"></td>
</tr>
<tr>
<td>Téléphone bureau </td>
<td>
<input name="telephone" type="text"></td>
</tr>
<tr>
<td>Téléphone mobile </td>
<td>
<input name="mobile" type="text"></td>
</tr>
<tr>
<td>Fax</td>
<td>
<input name="fax" type="text"></td>
</tr>
<tr>
<td>Adresse mail</td>
<td>
<input name="mail" type="text"></td>
</tr>
<tr>
<td>Bureau</td>
<td>
<input name="bureau" type="text"></td>
</tr>
<tr>
<td>Société</td>
<td>
<input name="societe" type="text"></td>
</tr>
<tr>
<td>Direction</td>
<td>
<input name="direction" type="text"></td>
</tr>
<tr>
<td>Service</td>
<td>
<input name="service" type="text"></td>
</tr>
<tr>
<td>Fonction2</td>
<td>
<input name="fonction2" type="text"></td>
</tr>
<tr>
<td>Sexe</td>
<td>
Homme : <input name="sexe" value="M" type="radio">
<br>
Femme : <input name="sexe" value="F" type="radio">
</td>
</tr>
<tr>
<td>Fonction</td>
<td>
<select name="fonction">
<option value="enseignant">Enseignant</option>
<option value="etudiant">Etudiant</option>
<option value="ingenieur">Ingénieur</option>
<option value="retraite">Retraité</option>
<option value="autre">Autre</option>
</select>
</td>
</tr>
<tr>
<td>Commentaires</td>
<td>
<textarea rows="3" name="commentaires">Tapez
ici vos commentaires</textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input value="Envoyer" type="submit"></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
Avec mes remerciements pour la réactivité et les conseils. =D>
En fait, je n'ai pas de $message, mon adresse mail est inscrite directement dans mon html, il me bascule un mail avec une pièce jointe POSTDATA.ATT et ce fichier contient les réponses mais elles sont toutes collées les unes à la suite des autres. Ci-dessous mon codage :
[php]<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>TEST MAIL</title>
</head>
<body>
<br>
<br>
<form method="post" action="mailto:
[email protected]"><br>
<span style="font-weight: bold;"><br>
</span>
<div style="margin-left: 40px;"><span
style="font-weight: bold;">Merci de remplir les
différents champs</span><br>
<span style="font-weight: bold;"></span></div>
<span style="font-weight: bold;"><br>
</span>
<table border="0">
<tbody>
<tr>
<td>Nom</td>
<td>
<input name="nom" type="text"></td>
</tr>
<tr>
<td>Prénom</td>
<td>
<input name="prenom" type="text"></td>
</tr>
<tr>
<td>Téléphone bureau </td>
<td>
<input name="telephone" type="text"></td>
</tr>
<tr>
<td>Téléphone mobile </td>
<td>
<input name="mobile" type="text"></td>
</tr>
<tr>
<td>Fax</td>
<td>
<input name="fax" type="text"></td>
</tr>
<tr>
<td>Adresse mail</td>
<td>
<input name="mail" type="text"></td>
</tr>
<tr>
<td>Bureau</td>
<td>
<input name="bureau" type="text"></td>
</tr>
<tr>
<td>Société</td>
<td>
<input name="societe" type="text"></td>
</tr>
<tr>
<td>Direction</td>
<td>
<input name="direction" type="text"></td>
</tr>
<tr>
<td>Service</td>
<td>
<input name="service" type="text"></td>
</tr>
<tr>
<td>Fonction2</td>
<td>
<input name="fonction2" type="text"></td>
</tr>
<tr>
<td>Sexe</td>
<td>
Homme : <input name="sexe" value="M" type="radio">
<br>
Femme : <input name="sexe" value="F" type="radio">
</td>
</tr>
<tr>
<td>Fonction</td>
<td>
<select name="fonction">
<option value="enseignant">Enseignant</option>
<option value="etudiant">Etudiant</option>
<option value="ingenieur">Ingénieur</option>
<option value="retraite">Retraité</option>
<option value="autre">Autre</option>
</select>
</td>
</tr>
<tr>
<td>Commentaires</td>
<td>
<textarea rows="3" name="commentaires">Tapez
ici vos commentaires</textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input value="Envoyer" type="submit"></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>[/php]
Avec mes remerciements pour la réactivité et les conseils. =D>