Results 1 to 8 of 8
Thread: php
Hybrid View
-
8th July 2011 16:24 #1Registered User
Join Date: Apr:2007
Location: Sliven, Bulgaria
Posts: 8
php
, . php a -. , - , ""
(≤╫╟ ²╦╨╬╩╬╡╟
, .
, .
.. php
-
8th July 2011 17:58 #2
( ).
UTF8 windows-1251 , header-, , , , ..
email PEAR , .. mail(), content-type-a.
-
10th July 2011 18:47 #3Registered User
Join Date: Oct:2008
Location:
Posts: 95
php mail base64_encode
UTF-8 , ... :
:PHP Code:<?php
$subject = " ";
$encoded_subject="=?Windows-1251?B?".base64_encode($subject)."?=\r\n";
mail( "vashiat-mail@abv.bg",
$encoded_subject,
": ".$_POST['msg'],
'Content-type: text/plain; charset=windows-1251'."\r\n".
"From: ".$_POST['email']."\r\n".
'Reply-To: '.$_POST['mail']."\r\n".
'MIME-Version: 1.0');
?>
$encoded_subject="=?Windows-1251?B?".base64_encode($subject)."?=\r\n ";
-
11th July 2011 13:55 #4Registered User
Join Date: Apr:2007
Location: Sliven, Bulgaria
Posts: 8
PhrozenCrew:
. .
<?php
$subject = ' ';
$encoded_subject="=?Windows-1251?B?".base64_encode($subject)."?=\r\n ";
$emailadd = 'my@mail.com';
$url = 'http://www.mywebsite.com/php/thankyou.html';
'Content-type: text/plain; charset=windows-1251'."\r\n".
$text = ":\n\n";
$space = ' ';
$line = '
';
foreach ($_POST as $key => $value)
{
if ($req == '1')
{
if ($value == '')
{echo "$key is empty";die;}
}
$j = strlen($key);
if ($j >= 20)
{echo "Name of form element $key cannot be longer than 20 characters";die;}
$j = 20 - $j;
for ($i = 1; $i <= $j; $i++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
}
mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
?>
-
12th July 2011 11:25 #5Registered User
Join Date: Oct:2008
Location:
Posts: 95
. base64 , . :
mail($emailadd, $encoded_subject, $text, 'From: '.$emailadd.'');
.
-
12th July 2011 12:37 #6Registered User
Join Date: Apr:2007
Location: Sliven, Bulgaria
Posts: 8
. $encoded_subject .
, email gmail , . Outlook 2003. , .
.
-
12th July 2011 13:07 #7
-
12th July 2011 14:43 #8Registered User
Join Date: Apr:2007
Location: Sliven, Bulgaria
Posts: 8
. , ( ) php-, .
.
.




Reply With Quote
)).
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in