Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] - problem z naglowkami maili
pieto
post
Post #1





Grupa: Zarejestrowani
Postów: 227
Pomógł: 1
Dołączył: 12.05.2002
Skąd: gdańsk

Ostrzeżenie: (0%)
-----


Witam,

Od dluzszego czasu nie mogę sie z tym uporac na home.pl gdzie do maili wykorzytywany jest qmail, maile nie dochodza prawidlowo.

naglowek wyglada tak


$headers .= "From:\"".STORE_OWNER."\" <".POCZTA_SKLEPU.">\n";
//$headers .= 'To: ' . $to_customer . "\n";

$headers .= "Bcc:". POCZTA_KOPIA."\n";
$headers .= "Reply-to: ".POCZTA_SKLEPU."\n";
$headers .= "Return-Path: ".POCZTA_SKLEPU."\n";

$headers .= 'MIME-Version: 1.0' ."\n";
$headers .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '"' . "\n";

$headers .= '--' . $boundary. "\r\n";
$headers .= 'Content-Type: text/HTML; charset=ISO-8859-2' ."\n";
$headers .= 'Content-Transfer-Encoding: 8bit'. "\r\n";
$headers .= "$text" . "\r\n";
//$headers .= "\n";
$headers .= '--' . $boundary ."\r\n";
$headers .= 'Content-Type: text/plain; charset=ISO-8859-2' ."\n";
$headers .= 'Content-Transfer-Encoding: 8bit'. "\r\n";
$headers .= "$plaintext" . "\r\n";

$headers .= '--' . $boundary ."\n";
$esubject = $subject_customer;

mail("$to_customer", "$esubject", "", "$headers", "$options");


Przewaznie maile dochodza puste, domyslam sie ze chodzi o konce lini ale na tyle juz sposobow probowalem ze nie wiem jak powinny wygldac.

z gory dzieki
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
pieto
post
Post #2





Grupa: Zarejestrowani
Postów: 227
Pomógł: 1
Dołączył: 12.05.2002
Skąd: gdańsk

Ostrzeżenie: (0%)
-----


Zauważ że treść wiadomości przesyłana jest w nagłówkach - jednocześnie plain i html ,
na starym hostingu gdzie do wysylki maili jest standardowy senmail() funkcja dziala prawidlowo, problem jedynie na home.pl


Podaje zrodlo wiadomosci ktora dochodzi:


From - Wed Nov 14 16:20:00 2007
X-Account-Key: account3
X-UIDL: UID1267-1187349785
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-path: <a2s@home.pl>
Envelope-to: p.klimczak@wft.pl
Delivery-date: Wed, 14 Nov 2007 16:17:39 +0100
Received: from v045477.home.net.pl ([89.161.227.11])
by host1.fastom.pl with smtp (Exim 4.68)
(envelope-from <a2s@home.pl>)
id 1IsJzn-0000D6-An
for p.klimczak@wft.pl; Wed, 14 Nov 2007 16:17:39 +0100
Date: Wed, 14 Nov 2007 15:17:49 -0000
Message-ID: <20071114151749.98639.qmail@home.pl>
To: p.klimczak@wft.pl
Subject: EMAIL_SUBJECT
From: "Home - Katalog a2s.pl" <a2s@home.pl>
Reply-to: a2s@home.pl
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="e107fc0230f6fbc83bd2ee58e3b081c3"

--e107fc0230f6fbc83bd2ee58e3b081c3

Content-Type: text/HTML; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit

Prosta <u>zawartos</u> <b>html</b>

--e107fc0230f6fbc83bd2ee58e3b081c3

Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit

W razie wątpliwości lub w celu uzyskania dodatkowych informacji prosimy o kontakt na adres katalog@a2s.pl
Pozdrawiamy i zapraszamy do korzystania z naszego serwisu.
Zespół a2s.pl


TechBase Sp. z o.o.
www.techbase.pl
ul. Raciborskiego 51/3
80-215 Gdańsk
tel. +48 58 345-39-22, +48 58 345-39-23
fax. +48 58 345-39-15
www.a2s.pl
katalog@a2s.pl


--e107fc0230f6fbc83bd2ee58e3b081c3


Prosta <u>zawartos</u> <b>html</b>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.12.2025 - 04:26