Ver original$fp = fopen("salida.txt","a");fwrite($fp, print_r(imap_fetchstructure($imap, $message),true));fclose($fp);