Bonjour à tous,

J'essai d'envoyer un mail avec une image dans le coprs mais elle ne s'affiche pas :

Je créé mon mail ainsi :
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
 
////	ENVOI DE MAIL(S)
////
function envoi_mail($destinataires, $objet_mail, $contenu_mail, $options="")
{
 
	////	INITIALISATION
	global $trad, $infos_trad;
	if(empty($options["message_alert"]))	$options["message_alert"] = "oui";
	if(empty($options["envoi_fichiers"]))	$options["envoi_fichiers"] = "non";
	if(empty($options["header_footer"]))	$options["header_footer"] = "oui";
	$retour = "\n";
	$frontiere = "-----=".md5(uniqid(mt_rand()));
	$fichiers_joints = control_upload();	
	$expediteur = " noreply <noreply@".str_replace("www.","",$_SERVER["SERVER_NAME"]).">";
 
	////	DESTINATAIRES
	if(!is_array($destinataires))	$destinataires = array($destinataires);
	foreach($destinataires as $dest_key => $dest_tmp)	{  if(is_numeric($dest_tmp))  $destinataires[$dest_key] = info_utils($dest_tmp,"mail");  }
	$destinataires = implode(",", array_unique($destinataires));
	$destinataires="c-marraillac@smacl.fr";	
 
	////	HEADERS
	$header  = "From: ".$expediteur.$retour;
	$header .= "MIME-Version: 1.0".$retour;
	$header .= "Bcc: ".$destinataires.$retour;
	if($fichiers_joints==true)	{ $header .= "Content-Type: multipart/mixed; boundary=\"".$frontiere."\"".$retour.$retour; }
	else						{ $header .= "Content-Type: text/html; charset=\"".$infos_trad["charset"]."\" ".$retour.$retour; }
 
	////	MESSAGE HTML	
	$message  = "";
	if($fichiers_joints==true){		
		$message .= "--".$frontiere.$retour;
		$message .= "Content-Type: text/html; charset=\"".$infos_trad["charset"]."\" ".$retour.$retour;
	}
	$message .= "<html>".$retour."<head>".$retour."<title>".$objet_mail."</title>".$retour."</head>".$retour."<body>".$retour;	
		// MIse en place du Header SMACL
		$message .= "<table width=\"650\" border=\"0\">"; 
			$message .= "<tr>";
				$message .= "<td><img src=\"".path_templates."divers/logo_mail.png\" align=right width=40 height=30 alt=\"SMACL logo\"></td>";
				$message .= "<td colspan=\"2\"><b>". $trad["divers"]["header_mail_line1"] ."<br />". $trad["divers"]["header_mail_line2"] ."</b></td>";
			$message .= "</tr>";
			$message .= "<tr><td colspan=\"3\"><br /><br />";
				$message .= $contenu_mail;
			$message .= "<br /><br /></td></tr>";
			$message .= "<tr>";		
				$message .= "<td>Emilie ROBIN,<br />Tel : 05.49.32.99.20</td>";
				$message .= "<td>Martine RENAUD,<br />Tel : 05.49.32.56.96</td>";
				$message .= "<td>Michael GENET,<br />Tel : 05.49.32.20.23</td>";
			$message .= "</tr>";
		$message .= "</table>";
	$message .= "</body>".$retour."</html>".$retour.$retour;
 
	////	FICHIERS JOINTS
	foreach($_FILES as $id_input_fichier => $fichier)
	{
		if($fichier["error"]==0 and $options["envoi_fichiers"]=="oui"){
			// Ajout du fichier au message
			$message .= "--".$frontiere.$retour;
			$message .= "Content-Type: ".$fichier["type"]."; name=\"".$fichier["name"]."\"".$retour;
			$message .= "Content-Transfer-Encoding: base64".$retour;
			$message .= "Content-Disposition:attachement; filename=\"".$fichier["name"]."\"".$retour.$retour; 
			$message .= chunk_split(base64_encode(file_get_contents($fichier["tmp_name"]))).$retour.$retour;
		}
	}
 
	////	ENVOI DU MAIL + RAPPORT D'ENVOI SI DEMANDE
	$message_envoye = @mail(null, $objet_mail, $message, $header);
	if($options["message_alert"]=="oui" and $message_envoye==true)			{ alert($trad["divers"]["mail_envoye"]); }
	elseif($options["message_alert"]=="oui" and $message_envoye==false)		{ alert($trad["divers"]["mail_pas_envoye"]); }	
	return $message_envoye;
}
Quelqu'un aurait-il une idée ????

Merci d'avance !!