[php] Polskie litery w mailu
: czw lut 15, 2007 4:36 pm
Witam, Zrobilem formulasz flash polaczony z php.Flash zczytuje php. Czemu nie ma polskich liter w mailu wyslanym przez ten formularz??
php:
[php]<?php
<?
// Enter your contact email address here
$adminaddress = "[email protected]";
// Enter the address of your website here include http://www.
$siteaddress ="http://www.domena.pl";
// Enter your company name or site name here
$sitename = "Nazwa strony";
/*******************************************************/
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
if ($action != ""):
mail("$adminaddress","Tytul maila",
"Wiadomosc nadana z $sitename \n
Imie: $fname
Nazwisko: $lname
Email: $email
Telefon: $telno\n
Tresc wiadomosci:
------------------------------
$comments
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$email","Thank You for visiting $sitename",
"Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
$sendresult = "Dziekujemy za wiadomosc. Odpiszemy w najblizszym czasie";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>
?>[/php]
php:
[php]<?php
<?
// Enter your contact email address here
$adminaddress = "[email protected]";
// Enter the address of your website here include http://www.
$siteaddress ="http://www.domena.pl";
// Enter your company name or site name here
$sitename = "Nazwa strony";
/*******************************************************/
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
if ($action != ""):
mail("$adminaddress","Tytul maila",
"Wiadomosc nadana z $sitename \n
Imie: $fname
Nazwisko: $lname
Email: $email
Telefon: $telno\n
Tresc wiadomosci:
------------------------------
$comments
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$email","Thank You for visiting $sitename",
"Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
$sendresult = "Dziekujemy za wiadomosc. Odpiszemy w najblizszym czasie";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>
?>[/php]