Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: funkcje mail() na yoyo.pl
Forum PHP.pl > Forum > Przedszkole
mediasp
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!!
vip3r
sprobuj na innym serwerze, np. na localhoscie.
pioch
funkcja mail() na yoyo.pl jest wyłaczona
ale dla pewności sprawdź


<?phpinfo();?>
mediasp
w phpinfo mam

Cytat
mail_limit 10
mail_limit_path use/coś tam........

sendmail_from no value

sendmail_path use/coś tam........
Path to sendmail /use/coś tam........ -t -i
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.