Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2009, 15:38
SeNdEr2003
 
Fecha de Ingreso: agosto-2003
Mensajes: 906
Antigüedad: 23 años, 2 meses
Puntos: 3
Imagen por email

Buenas

Estoy tratando de enviar una imagen por email en php, pero veo que no llega, el mail me llega en blanco, porque??? hago esto:

Código PHP:
$subject = "New Friend Recomendation"; // asunto del mail
$hdr="MIME-Version: 1.0\n";
$hdr.="Content-type: text/html; charset=iso-8859-1\n";
$hdr.="Content-Transfer-Encoding: 8bit\n";
$hdr.="X-Priority: 1\n";
$hdr.="X-MSMail-Priority: High\n";
$hdr.="From: \"InfoNews\" <[email protected]>\n";

$mensaje2 = "<html>\n<body>\n"; 
$mensaje2 = 'Dear '.$friendname.',

Tu amigo '
.$yourname.' te recomienda que visites.....etc';
$mensaje2 = "<img src='http://fotobienllamada.jpg' width='265' height='56'>";
$mensaje2 = "</body>\n</html>\n"; 
mail("[email protected]", $subject, $mensaje, $hdr);// enviamos el mail!
mail($recipient2, "Thank You!", $mensaje2, $hdr); 
todo llega menos la imagen, quiero que ya llegue dentro del cuerpo del mail aunque se vea la cruz pero ni eso...alguna ayuda?