bonjour, j'ai réalisé un formulaire d'envoi de mail avec html et je veux qu'il m'envoi un mail dans ma boite mais ça ne fonctionne pas bien.voici mon code.

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<form name="envoiemail" id="envoiemail" method="post" action="mail.php">
    <table border="0" cellspacing="1">
        <tr>
            <td width="150"><p>Nom / Raison Social :<span style="color:red">*</span></p></td>
            <td width="395">
                <input type="text" id="nom" name="nom"  size="59" style="background-color: #A9E2F3; color: rgb(255,255,255);font-weight: bold;"></td>
        </tr>
		<tr>
            <td width="150"><p>Courriel :<span style="color:red">*</span></p></td>
            <td width="395">
                <input type="text" id="courriel" name="courriel"  size="59" style="background-color: #A9E2F3; color: rgb(255,255,255);font-weight: bold;"></td>
        </tr>
		<tr>
            <td width="150"><p>Télephone : </p></td>
            <td width="395">
                <input type="text" id="telephone" name="telephone"  size="59" style="background-color: #A9E2F3; color: rgb(255,255,255);font-weight: bold;"></td>
        </tr>
        <tr>
            <td width="150"><p>Sujet :<span style="color:red">*</p></td>
            <td width="395">
                <input type="text" id="edSubject"  name="edSubject" size="59" style="background-color: #A9E2F3; color: rgb(255,255,255);font-weight: bold;"></td>
        </tr>
        <tr>
            <td width="150"><p>Message :<span style="color:red">*</p></td>
            <td width="395">
                <textarea rows="20" id="edBody"  name="edBody" cols="55" style="background-color: #A9E2F3; color: rgb(255,255,255);font-weight: bold;overflow: hidden;"></textarea></td>
        </tr>
    </table>
    <br>
    <input type="submit" value="Envoyer" >
</form>

Configuration de fichier php.ini:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
[mail function]
; For Win32 only.
SMTP = localhost 
smtp_port = 25
 
; For Win32 only.
sendmail_from = aouatif.elkhou@gmail.com
lorsque je clique sur le boutton envoyer au lieu d'envoyer le mail a ma boite , il télécharge le fichier mail.php tel quel avec son code.

je sais pas comment résoudre ce problème