Buenas,
estoy intentando enviar una imagen embedida en un cuero de mail, pero la imagen no me la está mostrando.
Tengo este código:
<?
require("class.phpmailer.php");
$nombre = $_GET['n'];
$email = $_GET['e'];
$nombred = $_GET['nd'];
$emaild = $_GET['ed'];
$file = $_GET['f'];
$mail = new PHPMailer();
$mail->From = $email;
$mail->FromName = $nombre;
$mail->Mailer = "smtp";
$mail->Subject = "prueba embed";
$mail->AddEmbeddedImage('http://www.xxxx.com/pub/voto/20081024101008.jpg','myfoto');
$mail->AddAddress($emaild, $nombred);
$mail->IsHTML(true); // enviar como HTML
$body = "<HTML><BODY>Hola <font size=\"4\">" . $nombred . "</font>, <p>";
$body .= "Tu amigo <i>".$nombre."</i> te envía la siguiente fotografía.<p><img src='cid:myfoto' border=0 /></BODY></HTML>";
$mail->Body = $body;
if(!$mail->Send())
{
echo "There has been a mail error sending to " . $row["email"] . "<br>";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();
} else{
print "Mensaje enviado";
}
?>
He probado con rutas relativas y de absolutas y no me hace el replace del cid por la imagen.
¿Que puede fallar?