lo cambie por esto y funciono!
muchas gracias :)
Código HTML:
Ver originalif($file_error == 0){
$cuerpo .="Content-Type: $file_type; name=\"$file_name\"\r\n";
$cuerpo .="Content-Disposition: attachment; filename=\"$file_name\"\r\n";
$cuerpo .="Content-Transfer-Encoding: base64\r\n";
$cuerpo .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n";
$cuerpo .= $encoded_content;
}