Probleme d'envoi de mail
2301
-
avion-f16 Messages postés 20368 Date d'inscription Statut Contributeur Dernière intervention -
avion-f16 Messages postés 20368 Date d'inscription Statut Contributeur Dernière intervention -
bonjour a tous;
j'ai créer un fichier d'envoi de mail de confirmation sous php.
j'ai modifié les variables dans le fichier php.ini
[mail function]
; For Win32 only.
SMTP = smtpout.secureserver.net
smtp_port = 80
; For Win32 only.
sendmail_from = webmaster@mbcfx.com
quand j'ai testé sur mon localhost avec wampserver l'erreur suivant a été affiché:
Warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in C:\wamp\www\test mail\mail.php on line 43
si quelqu'un pourrait a le résoudre n'hésitez pas .
et voici le code mail.php :
<form name="form" method="post" action="mail.php">
Nom: <input name="nom" /> <br />
Prenom: <input name="prenom" /> <br />
Ville: <input name="ville" /> <br />
<input type="submit" value="Envoyer" />
</form>
</body>
</html>
<?php
if( isset($_POST['nom']) && isset($_POST['prenom']))
{
if( $_POST['nom']!="" && $_POST['prenom']!="")
{
$destinataire='webmaster@mbcfx.com';
$headers = 'MIME-Version: 1.0'."\n";
$headers .= 'Content-Type: text/html; charset=\"iso-8859-1\"\r\n';
$message_texte='Le Nom: ' . $_POST['nom'] . "<br />" ;
$message_texte.='Le Prenom: ' . $_POST['prenom'] . "<br />";
$message_texte.='La Ville: ' . $_POST['ville'] . "<br />";
$message=
"<html><body>" .
"<h1>Test Email</h1><br />".
$message_texte .
"</body></html>";
/**
ICI CODE POUR ENREGISTRER DANS LA BASE DE DONNEE
**/
mail($destinataire,"Information",$message,$headers);
}
}
?>
aide moi S'il vous plait
mercid'avance
j'ai créer un fichier d'envoi de mail de confirmation sous php.
j'ai modifié les variables dans le fichier php.ini
[mail function]
; For Win32 only.
SMTP = smtpout.secureserver.net
smtp_port = 80
; For Win32 only.
sendmail_from = webmaster@mbcfx.com
quand j'ai testé sur mon localhost avec wampserver l'erreur suivant a été affiché:
Warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in C:\wamp\www\test mail\mail.php on line 43
si quelqu'un pourrait a le résoudre n'hésitez pas .
et voici le code mail.php :
<form name="form" method="post" action="mail.php">
Nom: <input name="nom" /> <br />
Prenom: <input name="prenom" /> <br />
Ville: <input name="ville" /> <br />
<input type="submit" value="Envoyer" />
</form>
</body>
</html>
<?php
if( isset($_POST['nom']) && isset($_POST['prenom']))
{
if( $_POST['nom']!="" && $_POST['prenom']!="")
{
$destinataire='webmaster@mbcfx.com';
$headers = 'MIME-Version: 1.0'."\n";
$headers .= 'Content-Type: text/html; charset=\"iso-8859-1\"\r\n';
$message_texte='Le Nom: ' . $_POST['nom'] . "<br />" ;
$message_texte.='Le Prenom: ' . $_POST['prenom'] . "<br />";
$message_texte.='La Ville: ' . $_POST['ville'] . "<br />";
$message=
"<html><body>" .
"<h1>Test Email</h1><br />".
$message_texte .
"</body></html>";
/**
ICI CODE POUR ENREGISTRER DANS LA BASE DE DONNEE
**/
mail($destinataire,"Information",$message,$headers);
}
}
?>
aide moi S'il vous plait
mercid'avance
A voir également:
- Probleme d'envoi de mail
- Programmer envoi mail gmail - Guide
- Windows live mail - Télécharger - Mail
- Envoi mail cci - Guide
- Annuler envoi mail gmail - Guide
- Gmail envoyer un mail - Guide