Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]from2mail
quzar
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 29.07.2009

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


Witam! Mam problem ze skryptem php from2mail. Zamieściłem go na stronie, maile wysyłają się na podany adres ale wyskakuje błąd:

CODE
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php:32) in /home/kasaznetu/domains/twittersymphony.com/public_html/form2mail.php on line 41


A to kod skryptu:

CODE
<?php


$headers = "From: Anonymous on $SERVER_NAME <$mail>\n";
$headers .= "X-Mailler: PHP 3 Form2Mail made by FTLS, http://www.ftls.org/\n";

$message = "";

while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}

$message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";

mail("adres@gmail.com", $subject, $message, $headers);
// En : Send mail
// Fr : Envoi du mail

if(! $exit_page)
$exit_page = "http://www.twittersymphony.com/";


Proszę o pomoc.

Ten post edytował quzar 29.07.2009, 10:15:53
Go to the top of the page
+Quote Post

Posty w temacie
- quzar   [PHP]from2mail   29.07.2009, 10:13:19
- - athei   Znajdź coś nowszego, czasy php3 minęły.   29.07.2009, 10:20:23
- - Method   Zamiast gethostbyaddr($REMOTE_ADDR) wpisz get...   29.07.2009, 10:35:15
- - quzar   po zmianie na gethostbyaddr($_SERVER['REM...   29.07.2009, 11:38:13


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: 23.08.2025 - 06:54