Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dziwny problem z mail()
Tigerrr
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 26.01.2009

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


Witam,

Mam taki kod:

  1. <?php
  2. $klucz=str_shuffle("qwertyuiopasdfghjklzxcvbnm1234567890");            
  3. $headers="MIME-Version: 1.0r\n";
  4. $headers.="From: ktos@serwer.pl;r\n";
  5. $headers.="Content-type: text/html; charset=utf-8r\n";
  6. $content="   <html><head><title>Aktywacja Konta</title></head>
  7.                  <body>
  8.                  tresc strony ...
  9.                  <a href=\"http://www.adres.pl/index.php?act=aktywacja&amp;key=$klucz\">link</a><br><br>
  10.                  reszta tresci
  11.                  </body></html>";
  12. ?>

Wywołanie:

  1. <?php
  2. mail("jakis@email.pl", "temat", $content, $headers);
  3. ?>


I teraz problem: mail nie dochodzi (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Co dziwniejsze, gdy zmienię "Content-type: text/html;" na "Content-type: html;", mail normalnie dochodzi, tyle że z treścią w załączniku (zresztą nie odczytaną jako html).

Zetknął się ktoś z takim problemem i zna rozwiązanie?

Pozdrawiam

EDIT: poprawiłem według wskazówek belliash'a

Ten post edytował Tigerrr 14.06.2009, 19:53:17
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Tigerrr
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 26.01.2009

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


Delivered-To: adres@gmail.com
Received: by 10.143.163.14 with SMTP id q14cs179641wfo;
Sun, 14 Jun 2009 17:05:23 -0700 (PDT)
Received: by 10.210.131.6 with SMTP id e6mr3810266ebd.81.1245024321865;
Sun, 14 Jun 2009 17:05:21 -0700 (PDT)
Return-Path: <webuser@web1.ipartners.pl>
Received: from web1.ipartners.pl (web1.ipartners.pl [157.25.5.5])
by mx.google.com with ESMTP id 18si6567897ewy.69.2009.06.14.17.05.21;
Sun, 14 Jun 2009 17:05:21 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of webuser@web1.ipartners.pl designates 157.25.5.5 as permitted sender) client-ip=157.25.5.5;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of webuser@web1.ipartners.pl designates 157.25.5.5 as permitted sender) smtp.mail=webuser@web1.ipartners.pl
Received: from web1.ipartners.pl (localhost [127.0.0.1])
by web1.ipartners.pl (8.13.3/8.13.3) with ESMTP id n5F05IWx050234
for <adrse@gmail.com>; Mon, 15 Jun 2009 02:05:19 +0200 (CEST)
(envelope-from webuser@web1.ipartners.pl)
Received: (from webuser@localhost)
by web1.ipartners.pl id n5F05IUw050233;
Mon, 15 Jun 2009 02:05:18 +0200 (CEST)
(envelope-from webuser)
Date: Mon, 15 Jun 2009 02:05:18 +0200 (CEST)
Message-Id: <200906150005.n5F05IUw050233@web1.ipartners.pl>
To: adres@gmail.com
Subject: Email Aktywacyjny
X-PHP-Script: www.adres.it.pl/pg/index.php for 83.31.237.128
From: <admin@strona.pl>
Reply-To: admin@strona.pl
X-Mailer: HandMade
MIME-Version: 1.0
Content-type: text/html; charset=utf-8

Tak to wygląda na gmailu...
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: 10.10.2025 - 06:57