
Francisco Caserio - 2008-07-31 14:11:33 -
In reply to message 1 from Francisco Caserio
I just noticed when I remove the following code part (where I attach the images) then hotmail receives the message correctly:
for ($j=0; $j<count($match[0]); $j++) {
$part=array(
"Data"=>$jpg[$j],
"Name"=>$j.".".$match[2][$j],
"Content-Type"=>"automatic/name",
"Disposition"=>"inline"
);
$email_message->CreateFilePart($part, $htm_part[$j]);
$part_content_id = $email_message->GetPartContentID($htm_part[$j]);
$msg = str_replace($match[0][$j], "cid:".$part_content_id, $msg);
}
$email_message->AddRelatedMultipart($htm_part);