Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> funkcje mail() na yoyo.pl, funkcje mail() na yoyo.pl nie działa ?
mediasp
post 26.01.2007, 18:26:30
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 26.01.2007

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


mama taki kod wysyłający mail
  1. <?
  2. $naglowki = 'MIME-Version: 1.0'.PHP_EOL;
  3. $headers .= 'Content-type: text/html; charset=iso-8859-2'.PHP_EOL;
  4. $naglowki .= 'Content-transfer-encoding: 8bit'.PHP_EOL;
  5. $naglowki .= 'From: adres@o22.pl'.PHP_EOL;
  6. $headers .= 'X-Confirm-Reading-To: adres@o2.pl'.PHP_EOL;
  7. $headers .= 'Disposition-Notification-To: adres@o2.pl'.PHP_EOL.PHP_EOL;
  8.  
  9. $tresc="<html>
  10. <body>
  11. <b> Dziekujemy za dokonanie rejestracji <br /> <br />$nazwa</b>
  12. <hr>
  13. <p >login :".$_POST['login']."<br>
  14. hasło: ".$_POST['haslo']." <br>
  15. imię : ".$_POST['imie']."<br>
  16. nazwisko: ".$_POST['nazwisko']."<br>
  17. płeć :".$_POST['plec']."<br>
  18. miasto :".$_POST['miasto']."<br>
  19. kod : ".$_POST['kod']."<br />
  20. adres : ".$_POST['adres']."<br />
  21. e-mail : ".$_POST['mail']."<br>
  22. <hr>
  23. kliknij na poniższy adres aby zakończyć rejestrację<br />
  24. <A HREF=http://".$adr."autoryzacja.php?id=".$_POST['login']."&a=".$_POST['auto'].">http://".$adr."autoryzacja.php?id=$".$_POST['login']."&a=".$_POST['auto']."</a>
  25. <br /><br />
  26. </body></html>";
  27.  
  28. mail($_POST['mail'],$temat, $tresc,$naglowki )
  29. ?>


zamiast .PHP_EOL uzywałem również \r\n
u minie wszystko działa poprawnie - maile dochodzą. Ale na yoyo.pl juz nie. Uzytkownik restrujący się otrzymuje:

Cytat
CORRUPTED MESSAGE

This is the Courier Mail Server 0.47 on v1.yoyo.pl.

I received the following message for delivery to your address. This message
contains several internal formatting errors. This is often caused by
viruses that attempt to infect remote systems. Instead of blocking
this message, it has been converted as a safe, text-only attachment that
can be safely read with a text editor.

This sometimes also happens when the sender's mail software has a bug
that creates improperly-formatted messages. Although these kinds of
formatting errors may often be ignored by other mail servers, this
server detects and intercepts improperly-coded messages in order to
prevent viruses from taking advantage of bugs in E-mail programs:

-----------------------------------------------------------------------------
This message contains improperly-formatted binary content, or attachment.

See <URL:ftp://ftp.isi.edu/in-notes/rfc2045.txt> for more information.


o co tu chodzi?
Pomóżcie exclamation.gif!!
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 00:57