Bonjour,
je vous remercie d'avance pour votre aide
mon problème c'est l envoi de mail depuis mon site,j'ai un code qui ne déclare aucun erreur
mais quand je vérifie ma boite email .... il n ya rien de rien pas de message reçu
juste une petite précision c'est que on serveur smtp c'est smtp.menara .ma
mon code:
Code : 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 
<?php 
//recuperation des info depui le formulaire
 
 
if(isset($HTTP_POST_VARS['nom']))      $nom=$HTTP_POST_VARS['nom'];
else      $nom="";
 
if(isset($HTTP_POST_VARS['car']))      $cat=$HTTP_POST_VARS['car'];
else      $cat="";
if(isset($HTTP_POST_VARS['dd']))      $dd=$HTTP_POST_VARS['dd'];
else      $dd="";
if(isset($HTTP_POST_VARS['df']))      $df=$HTTP_POST_VARS['df'];
else      $df="";
 
if(isset($HTTP_POST_VARS['prenom']))      $prenom=$HTTP_POST_VARS['prenom'];
else      $prenom="";
 
if(isset($HTTP_POST_VARS['email']))      $email=$HTTP_POST_VARS['email'];
else      $email="";
 
if(isset($HTTP_POST_VARS['sous']))      $societe=$HTTP_POST_VARS['sous'];
else      $societe="";
 
if(isset($HTTP_POST_VARS['adresse']))      $adresse=$HTTP_POST_VARS['adresse'];
else      $adresse="";
 
if(isset($HTTP_POST_VARS['tele']))      $tele=$HTTP_POST_VARS['tele'];
else      $tele="";
 
if(isset($HTTP_POST_VARS['mobile']))      $mobile=$HTTP_POST_VARS['mobile'];
else      $mobile="";
 
if(isset($HTTP_POST_VARS['fax']))      $fax=$HTTP_POST_VARS['fax'];
else      $fax="";
 
if(isset($HTTP_POST_VARS['adresse']))      $adresse=$HTTP_POST_VARS['adresse'];
else      $adresse="";
if(isset($HTTP_POST_VARS['rem']))      $autre=$HTTP_POST_VARS['rem'];
else      $rem="";
 
// mail
ini_set('SMTP','smtp.ifrance.com');
	$to = "mon_email@hotmail.fr";
	$subject = "envoi";
	$body = stripslashes($HTTP_POST_VARS['car']);
	$body .= "\n\n---------------------------\n";
	$body .= "Mail envoyer par: " . $HTTP_POST_VARS['nom'] ." ". $HTTP_POST_VARS['prenom']. "<" ."son email est " .$HTTP_POST_VARS['email']  . ">\n";
 
	$body .="\n\n---------------------------\n";
	$body .="adresse". $HTTP_POST_VARS['adresse']."\n";
	$body .="\n\n---------------------------\n";
	$body .="societé". $HTTP_POST_VARS['societe']."\n";
	$body .="\n\n---------------------------\n";
	$body .="fax ". $HTTP_POST_VARS['fax']."\n";
	$body .="\n\n---------------------------\n";
	$body .="telephone". $HTTP_POST_VARS['telephone']."\n";
	$body .="\n\n---------------------------\n";
	$body .="ville ". $HTTP_POST_VARS['mobile']."\n";
	$body .="\n\n---------------------------\n";
	$body .="message ". $HTTP_POST_VARS['rem']."\n";
 
	$header = "From: " . $HTTP_POST_VARS['nom']." ". $HTTP_POST_VARS['prenom'] . " <" . $HTTP_POST_VARS['email'] . ">\n";
	$header .= "Reply-To: " . $HTTP_POST_VARS['nom'] . " <" . $HTTP_POST_VARS['email'] . ">\n";
	$header .= "X-Mailer: PHP/" . phpversion() . "\n";
	$header .= "X-Priority: 1";
 
	if(@mail($to, $subject, $body, $header))
	{
		echo "message envoyer";
	} else {
		echo "erreur ";
 
	} ?>



j'éspére que j ai bien expliquer mon probléme: