Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/06/2015, 11:53
gylle05
 
Fecha de Ingreso: marzo-2009
Mensajes: 291
Antigüedad: 15 años, 1 mes
Puntos: 1
Respuesta: envío de mail

Gracias por tu respuesta...encontre un codigo asi:

<?php
$mail = "Prueba de mensaje";
$mail .= '<html>
<head>
<title>Atención con el Cambio de Tarifas y Comisiones</title>
</head>
<body>
<p>¡todos los vendedores a leer las tarifas segun empresas!</p>
<table>
<tr>

<th>Empresa</th><th>Tarifa Anterior</th><th>Nueva Tarifa</th><th>Comision</th>
</tr>
<tr>
<td>Repsol</td><td>3.3</td><td>3.5</td><td>10%</td>
</tr>
<tr>
<td>Telefonica</td><td>17.45</td><td>18.1</td><td><img src="http://rutaaboluta/images/login.png" /></td>
</tr>
</table>
</body>
</html>
';
//Titulo
$titulo = "PRUEBA DE TITULO";
//cabecera
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
//dirección del remitente
$headers .= "From: yop <[email protected]>\r\n";
//Enviamos el mensaje a [email protected]
$bool = mail("[email protected]",$titulo,$mail,$headers) ;
if($bool){
echo "Mensaje enviado";
}else{
echo "Mensaje no enviado";
}
?>

y en el mail me sale un cuadro como si fuera la imagen, pero no la muestra...por que sera???