Otóż, napisałem skrypt do rozsyłania newsletterów w duchu technologii MIME tzn. mam mail multipart/alternative a potem dwie opcje: text/plain i multipart/related składający się z kolei z text/html i image/jpeg.
Mój problem polega na tym, że o ile mail wygląda bardzo dobrze pod klientem poczty Opera i w outlook expressie (tzn. zgodnie z intencjami bo szczegóły dotyczące layoutu są jeszcze do poprawy) to - niestety mam problemy przy sprawdzaniu poczty online na gmail'u i onecie.
W tym pierwszym wypadku mail jest totalnie pusty (nie ma nawet części text/plain!) i nie bardzo wiem z czego może to wynikać.
W tym drugim mail wygląda "prawie" tak jak trzeba (co ew. jest zupełnie do przebolenia) pomijając fakt, że totalnie skaszanione jest kodowanie (mimo deklaracji UTF-8).
Czy ma ktoś może pomysł z czego może to wynikać? Poniżej wrzucam kod maila:
Kod: Zaznacz cały
Return-path: <[email protected]>
Envelope-to: xxxxx@xxxxxx
Delivery-date: Thu, 02 Aug 2007 13:01:05 +0200
Received: from mail by da5.domeny.com with spam-scanned (Exim 4.67) (envelope-from <[email protected]>) id 1IGYQS-0004U0-Ct for xxxxx@xxxxx; Thu, 02 Aug 2007 13:01:05 +0200
X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on da5.domeny.com
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=7.5 tests=AWL,BASE64_LENGTH_79_INF, BAYES_00,HTML_MESSAGE,HTML_TITLE_SUBJ_DIFF,MIME_QP_LONG_LINE, NORMAL_HTTP_TO_IP,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.2.1
Received: from quantum.hostdmk.net ([209.85.32.86]:47208) by da5.domeny.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from <[email protected]>) id 1IGYQR-0004Tl-NM for xxxxx@xxxxx; Thu, 02 Aug 2007 13:01:04 +0200
Received: from nobody by quantum.hostdmk.net with local (Exim 4.63) (envelope-from <[email protected]>) id 1IGYQg-0002Qk-Lx for xxxxx@xxxxx; Thu, 02 Aug 2007 13:01:18 +0200
To: xxx@xxx
Subject: Newsletter
MIME-Version: 1.0
From: xxx <newsletter@xxxx>
Reply-To: newsletter@xxxxx
X-Mailer: PHP/5.2.3
Content-Type: multipart/alternative; boundary="=_d5203a10373f85a0152f3c0ba76369ff"
Message-ID: <[email protected]>
Date: Thu, 02 Aug 2007 13:01:18 +0200
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - quantum.hostdmk.net
X-AntiAbuse: Original Domain - xxxxx
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - quantum.hostdmk.net
--=_d5203a10373f85a0152f3c0ba76369ff
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
****************************************
Lorem Ipsum...
****************************************
--=_d5203a10373f85a0152f3c0ba76369ff
Content-Type: multipart/related;
boundary="=_29aea62d93f6b1dae0bedd9d93edeb4f"
--=_29aea62d93f6b1dae0bedd9d93edeb4f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" />
<title>Biuletyn informacyjny xxxxx</title>
<style type=3D"text/css">
#main_container
{
width: 770px;
}
#logo
{
top: 0px;
left: 0px;
}
#top_menu
{
text-align: center;
background-color: #aaa;
}
#content
{
width: 350px;
margin-left: 210px;
margin-top: 21px;
left: 210px;
}
.i
{
font-style: italic;
}
.b
{
font-weight: bold;
}
.data
{
color: #f00;
font-size: 120%;
}
.godzina
{
font-size: 120%;
}
h3
{
font-weight: bold;
font-size: 140%;
text-align: center;
}
h4
{
font-weight: bold;
font-size: 110%;
margin-bottom: 5px;
}
.tytul
{
font-weight: bold;
font-size: 105%;
margin-bottom: 4px;
}
</style>
</head>
<body>
<div id=3D"main_container">
<a href=3D"http://83.12.97.162/"><img id=3D"logo" src=3D"cid:287f01f3155370763966c9313def9eff" alt=3D"pyk" style=3D"border: 0px;" /></a>
<div id=3D"top_menu">
<a href=3D"#kat0">Dyskusyjny Klub Filmowy</a> | <a href=3D"#kat3">Spotkania</a> | <a href=3D"#kat5">Inne</a>
</div>
<div id=3D"content"><p name=3D"kat0" id=3D"kat0"><h3>Dyskusyjny Klub Filmowy</h3><p><h4><span class=3D"data">Lorem</span><span class=3D"godzina"> - Lorem</span></h4><span class=3D"tytul">Lorem Ipsum</span><br />Lorem Ipsum</p><p><h4><span class=3D"data">Lorem</span><span class=3D"godzina"> - Lorem</span></h4><span class=3D"tytul">Lorem Ipsum</span><br />Lorem Ipsum</p><br /><a href=3D"#top_menu">Powrót do góry</a><hr /></p><p name=3D"kat3" id=3D"kat3"><h3>Spotkania</h3><p><h4><span class=3D"data">Lorem</span><span class=3D"godzina"> - Lorem</span></h4><span class=3D"tytul"><span class=3D"i">Lorem Ipsum</span> — Lorem Ipsum</p><br /><a href=3D"#top_menu">Powrót do góry</a><hr /></p><p name=3D"kat5" id=3D"kat5"><h3>Inne</h3><p><h4><span class=3D"data">Lorem Ipsum</span><span class=3D"godzina"></span></h4><span class=3D"tytul">Lorem Ipsum</span><br />Lorem Ipsum</p><br /><a href=3D"#top_menu">Powrót do góry</a><hr /></p>
</div>
</div>
</body>
</html>
--=_29aea62d93f6b1dae0bedd9d93edeb4f
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="obrazek.jpg"
Content-ID: <287f01f3155370763966c9313def9eff>
/9j/4AAQSkZJRgABAQEAYABgAAD/...
wiadomo - duzo znaczków
...QVCKYhQZ+7RS+c/r+gop3Ef/9k%3D
--=_29aea62d93f6b1dae0bedd9d93edeb4f
--=_d5203a10373f85a0152f3c0ba76369ff