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
bodek71
post
Post #2





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 11.01.2008

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


z miłą chęcią to zrobię ale za duzo kodu na raz czy możesz podać bezpośredni kontakt do Ciebie prześlę ten plik.
Wgrałem phpmailer na serwer jednak mam trochę pytań odnośnie implementacji samego kodu na stronę cały skrypt działa na smartach i wprowadzenie kodu w znacznikach <? /?> nic nie da tylko błędy. Czy orientujesz się jak taki kod zaimplementować do pliku w tym przypadku.
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 - 20:34