ciao a tutti, io ho uno script in php che mi compone una mail tipo multipart (testo + html) che funziona normalmente su thunderbird ma su outlook 2003 no (mi visualizza l'html come testo semplice). La mail inviata dallo script è qui sotto (ho tagliato le parti superflue del testo) riprodotta esattamente anche nelle andate a capo e nelle righe vuote. Qualcuno ci trova degli errori???
Codice PHP:
Return-Path: <xxx@xxxxxxxxxx.xxx>
Delivered-To: [email]xxx@xxxxxxxxxx.xxx[/email]
Received: (qmail 15304 invoked by uid 33); 15 Feb 2008 19:01:01 -0000
Date: 15 Feb 2008 19:01:01 -0000
Message-ID: <20080215190101.15303.qmail@xxxxxxxxxx.xxx>
To: [email]xxx@xxxxxxxxxx.xxx[/email]
Subject: xxxxxxxxxxxxxxxx
MIME-version: 1.0
From: [email]xxx@xxxxxxxxxx.xxx[/email]
Content-type: multipart/alternative; boundary="b2912d364e74ff8f08638b7858b72cdc"
This is a multipart message in MIME format.
--
--b2912d364e74ff8f08638b7858b72cdc
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7-bit
testo semplice testo semplice testo semplice testo semplice testo semplice testo semplice testo semplice testo semplice testo semplice
--b2912d364e74ff8f08638b7858b72cdc
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7-bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body style="background-color: #003399;">
<table border="0" cellspacing="5" cellpadding="0" width="100%" >
testo html testo html testo html testo html testo html testo html testo html testo html testo html testo html testo html testo html
</table>
</body>
</html>
--b2912d364e74ff8f08638b7858b72cdc--