Je recois plus d' Email
Résolu
odulvic
Messages postés
318
Date d'inscription
Statut
Membre
Dernière intervention
-
avion-f16 Messages postés 19252 Date d'inscription Statut Contributeur Dernière intervention -
avion-f16 Messages postés 19252 Date d'inscription Statut Contributeur Dernière intervention -
bonjours a tous ,
j'ai un petit soucis avec mon site .
en effet j'ai fais une pages htlm avec un formulaires a remplir (identitée de la personnes)
et une page en php qui est lié avant tout marchais bien et aujourd'hui je vais un test et plus rien je recois que nini ^^
je met le code htlm de ma pages et le code php qui et censer fonctionner lol si besoins je poste aussi l'adresse du site "merci de m'eclairer"^^
---------------------------------------------------------------------------------------------------
code htlm :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>me contacter</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body,td,th {
color: #FFFF00;
}
body {
background-color: #000000;
}
a:link {
color: #FFFF00;
}
-->
</style></head>
<body class="sub">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" style="vertical-align: top">
<form action="me contacter_valid.php" method="post" name="form1" id="form1">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="name">Votre Nom : </label>
<input id="name" name="nom" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="email">Votre Email : </label>
<input id="email" name="email" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="subject">Sujet :</label>
<input id="subject" name="sujet" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="message">Message :</label>
<br />
<br />
<textarea id="message" name="message" rows="5" cols="50"></textarea> </td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="Envoyer" /> </td>
</tr>
</table>
</form> <p> </p> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr style="text-align: right" class="FooterColor">
<td> <div align="center"><a href="index.html">retour à l'accueil</a></div></td>
</tr>
</table>
</body>
</html>
--------------------------------------------------------------------------------------------------------------
code PHP :
<?php
//Page de validation pour l'envois d'un mail.
if (isset($_POST['nom']) AND isset($_POST['email']) AND isset($_POST['sujet']) AND isset($_POST['message']) AND !empty($_POST['nom']) AND !empty($_POST['email']) AND !empty($_POST['sujet']) AND !empty($_POST['message']))
{
$nom = htmlspecialchars($_POST['nom']);
$message = htmlspecialchars($_POST['message']);
$sujet = htmlspecialchars($_POST['sujet']);
$email = htmlspecialchars($_POST['email']);
$message_final = nl2br($message);
$headers ='From: '.$email."\n";
$headers .='Reply-To: '.$email."\n";
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
$message_final_html ='<html><head><title>mon adresse mail</title></head><body>'.$message_final.'</body></html>';
if(mail('mon adresse mail', $sujet, $message, $headers))
{
echo 'Le message a bien ete envoyé';
}
else
{
echo 'Le message n\'a pu être envoyé';
}
}
else {
echo "Vous n'avez pas rempli tout les champs! Merci de recommencer!";
}
?>
------------------------------------------------------------------------------------------------
url du site : http://civodul88.free.fr/index.html
je rappel que l'orsque je remplis le formulaires sur le site il n'y as pas d'erreurs
----------------------------------------------------------------------------------------------------
j'ai un petit soucis avec mon site .
en effet j'ai fais une pages htlm avec un formulaires a remplir (identitée de la personnes)
et une page en php qui est lié avant tout marchais bien et aujourd'hui je vais un test et plus rien je recois que nini ^^
je met le code htlm de ma pages et le code php qui et censer fonctionner lol si besoins je poste aussi l'adresse du site "merci de m'eclairer"^^
---------------------------------------------------------------------------------------------------
code htlm :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>me contacter</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body,td,th {
color: #FFFF00;
}
body {
background-color: #000000;
}
a:link {
color: #FFFF00;
}
-->
</style></head>
<body class="sub">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" style="vertical-align: top">
<form action="me contacter_valid.php" method="post" name="form1" id="form1">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="name">Votre Nom : </label>
<input id="name" name="nom" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="email">Votre Email : </label>
<input id="email" name="email" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="subject">Sujet :</label>
<input id="subject" name="sujet" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="message">Message :</label>
<br />
<br />
<textarea id="message" name="message" rows="5" cols="50"></textarea> </td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="Envoyer" /> </td>
</tr>
</table>
</form> <p> </p> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr style="text-align: right" class="FooterColor">
<td> <div align="center"><a href="index.html">retour à l'accueil</a></div></td>
</tr>
</table>
</body>
</html>
--------------------------------------------------------------------------------------------------------------
code PHP :
<?php
//Page de validation pour l'envois d'un mail.
if (isset($_POST['nom']) AND isset($_POST['email']) AND isset($_POST['sujet']) AND isset($_POST['message']) AND !empty($_POST['nom']) AND !empty($_POST['email']) AND !empty($_POST['sujet']) AND !empty($_POST['message']))
{
$nom = htmlspecialchars($_POST['nom']);
$message = htmlspecialchars($_POST['message']);
$sujet = htmlspecialchars($_POST['sujet']);
$email = htmlspecialchars($_POST['email']);
$message_final = nl2br($message);
$headers ='From: '.$email."\n";
$headers .='Reply-To: '.$email."\n";
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
$message_final_html ='<html><head><title>mon adresse mail</title></head><body>'.$message_final.'</body></html>';
if(mail('mon adresse mail', $sujet, $message, $headers))
{
echo 'Le message a bien ete envoyé';
}
else
{
echo 'Le message n\'a pu être envoyé';
}
}
else {
echo "Vous n'avez pas rempli tout les champs! Merci de recommencer!";
}
?>
------------------------------------------------------------------------------------------------
url du site : http://civodul88.free.fr/index.html
je rappel que l'orsque je remplis le formulaires sur le site il n'y as pas d'erreurs
----------------------------------------------------------------------------------------------------
A voir également:
- Je recois plus d' Email
- Je ne reçois plus certaines chaînes tnt - Guide
- Comment creer un compte email - Guide
- Facebook piraté et adresse email changé - Guide
- Mon email ✓ - Forum Mail
- Pourquoi je ne reçois plus les notifications snapchat iphone - Forum Snapchat
6 réponses
C'est des informations supplémentaires.
Comme les entêtes HTTP ...
Si tu ne comprends pas, ce n'est pas grave, ajoute la ligne que je t'ai donné après
Comme les entêtes HTTP ...
Si tu ne comprends pas, ce n'est pas grave, ajoute la ligne que je t'ai donné après
$headers .='Content-Transfer-Encoding: 8bit';
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question