hola migos estoy usando la funcion mail de php ya que con phpmailer tube problemas a la hora de abrir los mails con el netscape o el mozilla, por eso decidi hacerlo con el la funcion mail(), el problema es que tengo que poner en el mail 3 imagenes incrustadas en el mail y no se como, ya que se adjuntar 1 imagene incrustadas pero no se como hacerle para que me las ponga donde yo le digo y como adjuntar mas imagenes EJ:;
---------------------------
$UN_SALTO="\r\n";
$DOS_SALTOS="\r\n\r\n";
 
$destinatario="mail";
$titulo="Mensaje con dos fichero adjuntos";
$mensaje="<html><head></head><body bgcolor=\"#ff0000\">";
$mensaje .="<font face=\"Arial\" size=6>Raico S.A </font>";
$mensaje .="</body></html>";
$responder="mailr";
$remite="mailrr";
$remitente="Diego";
 
$separador = "_separador_de_trozos_".md5 (uniqid (rand())); 
 
$cabecera = "Date: ".date("l j F Y, G:i").$UN_SALTO; 
$cabecera .= "MIME-Version: 1.0".$UN_SALTO; 
$cabecera .= "From: ".$remitente."<".$remite.">".$UN_SALTO;
$cabecera .= "Return-path: ". $remite.$UN_SALTO;
$cabecera .= "Reply-To: ".$remite.$UN_SALTO;
$cabecera .="X-Mailer: PHP/". phpversion().$UN_SALTO;
$cabecera .= "Content-Type: multipart/mixed;".$UN_SALTO; 
$cabecera .= " boundary=$separador".$DOS_SALTOS; 
 
// Parte primera -Mensaje en formato HTML 
      # Separador inicial
$texto ="--$separador".$UN_SALTO; 
      # Encabezado parcial
$texto .="Content-Type: text/html; charset=\"ISO-8859-1\"".$UN_SALTO; 
$texto .="Content-Transfer-Encoding: 7bit".$DOS_SALTOS; 
      # Contenido de esta parte del mensaje
  $texto .= $mensaje;
 
      # Separador de partes
 
$adj1 = $UN_SALTO."--$separador".$UN_SALTO; 
 
// Parte segunda -Fichero adjunto nº 1 
 
      # Encabezado parcial
 
$adj1 .="Content-Type: image/jpeg; name=\"image001.jpg\"".$UN_SALTO;  
$adj1 .="Content-Disposition: inline; filename=\"image001.jpg\"".$UN_SALTO;
$adj1 .="Content-Transfer-Encoding: base64".$DOS_SALTOS; 
 
      # lectura  del fichero adjunto  
      $fp = fopen("/image001.jpg","r"); 
           $buff = fread($fp, filesize/imagenes/image001.jpg")); 
       fclose($fp); 
      # codificación del fichero adjunto  
$adj1 .=chunk_split(base64_encode($buff)); 
 
 
// Unión de las diferentes partes para crear
  // el cuerpo del mensaje 
 
 
  $mensaje=$texto.$adj1;
 
 // envio del mensaje 
 
 
if( mail($destinatario, $titulo, $mensaje,$cabecera)){
	echo "mensaje enviado";
}
 
?> 
   
 

 PHP Mailer
 PHP Mailer 
