Script pour envoi formulaire vers mail
Résolu
calimero
-
m1602 -
m1602 -
Bonjour,
je suis débutante en programmation html, j'essaie de faire un formulaire pour un site web,
j'ai réussi à avoir la page html, mais quand je teste la saisie du nom et email, je suis dirigée vers la messagerie.
comment récupérer l'information directement et l'envoyer vers l'adresse email directement.
merci pour votre aide.
voici le code :
<FORM METHOD="POST" ACTION="mailto:test@yahoo.fr" enctype="text/plain">
<TABLE width="70%">
<TBODY>
<TR>
<TD width="7%"> </TD>
<TD> <P>Prénom</P></TD>
<TD width="1%"> </TD>
<TD><input name=prenom></TD>
</TR>
<TR>
<TD width="7%"> </TD>
<TD> <P>Email</P></TD>
<TD width="1%"> </TD>
<TD><INPUT name=email></TD>
</TR>
<TR>
<TD colSpan=3> </TD>
<TD><INPUT TYPE=submit VALUE="Inscrivez-moi"> </FORM>
</FORM>
</body>
</html>
je suis débutante en programmation html, j'essaie de faire un formulaire pour un site web,
j'ai réussi à avoir la page html, mais quand je teste la saisie du nom et email, je suis dirigée vers la messagerie.
comment récupérer l'information directement et l'envoyer vers l'adresse email directement.
merci pour votre aide.
voici le code :
<FORM METHOD="POST" ACTION="mailto:test@yahoo.fr" enctype="text/plain">
<TABLE width="70%">
<TBODY>
<TR>
<TD width="7%"> </TD>
<TD> <P>Prénom</P></TD>
<TD width="1%"> </TD>
<TD><input name=prenom></TD>
</TR>
<TR>
<TD width="7%"> </TD>
<TD> <P>Email</P></TD>
<TD width="1%"> </TD>
<TD><INPUT name=email></TD>
</TR>
<TR>
<TD colSpan=3> </TD>
<TD><INPUT TYPE=submit VALUE="Inscrivez-moi"> </FORM>
</FORM>
</body>
</html>
A voir également:
- Formulaire envoi mail html
- Whatsapp formulaire opposition - Guide
- Formulaire de réclamation facebook - Guide
- Mail delivery system - Astuces et Solutions
- Programmer envoi mail gmail - Guide
- Envoi mail cci - Guide
61 réponses
Je pense que tout au debut du form html tu a marqué :
<form method=POST action=gras>formmail.php</gras> >
<input type=hidden name=subject value=formmail>
( erreur en gras )
sauf qu'il faut marqué action=nomdufichier.html et non pas php ( je pense index.html ou form.html ) dépend de ton serveur, mais je te conseillerais d'essayer :
action=index.html
<form method=POST action=gras>formmail.php</gras> >
<input type=hidden name=subject value=formmail>
( erreur en gras )
sauf qu'il faut marqué action=nomdufichier.html et non pas php ( je pense index.html ou form.html ) dépend de ton serveur, mais je te conseillerais d'essayer :
action=index.html
Merci