![]() |
![]() |
![]()
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 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 06:54 |