Originariamente inviato da }gu|do[z]{®©
prima di tutti gli altri mail headers.. perà con un \n alla fine mi pare

ho provato ma mi arriva l'email cosi:
codice:
--951b017c137897519eb5abee36860993
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

prova invio email

--951b017c137897519eb5abee36860993
Content-type: ; name=""
Content-Transfer-Encoding: BASE64
Content-disposition: attachment; filename=""


--951b017c137897519eb5abee36860993--
ed ho messo come dicevi tu:

Codice PHP:
// INTESTAZIONI DELLA MAIL
$mail_headers="From: $mittente\n"
$mail_headers .= "MIME-version: 1.0\n";
$mail_headers .= "Content-type: multipart/mixed; boundary=\"$boundary\"\n";
$mail_headers .= "Content-transfer-encoding: 7BIT\n";
$mail_headers .= "X-attachments: $file_name\n";
$mail_headers="From: $mittente"