Results 1 to 8 of 8

Thread: php

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Apr:2007
    Location: Sliven, Bulgaria
    Posts: 8

    php

    , . php a -. , - , ""

    (≤╫╟ ²╦╨╬╩╬╡╟

    , .

    , .

    .. php

  2. #2
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    ( ).
    UTF8 windows-1251 , header-, , , , ..
    email PEAR , .. mail(), content-type-a.

  3. #3
    Registered 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 ";

  4. #4
    Registered 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.'">';

    ?>

  5. #5
    Registered User
    Join Date: Oct:2008
    Location:
    Posts: 95
    . base64 , . :
    mail($emailadd, $encoded_subject, $text, 'From: '.$emailadd.'');
    .

  6. #6
    Registered User
    Join Date: Apr:2007
    Location: Sliven, Bulgaria
    Posts: 8
    . $encoded_subject .
    , email gmail , . Outlook 2003. , .

    .

  7. #7
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    . Outlook 2003 .

    'Content-type: text/plain; charset=windows-1251'."\r\n".
    -... ?!
    - , - , subject - ( 10- ( 2 5 )).
    "Zapitvane ot saita".

    : $text = ":\n\n";
    \r\n .

    if ($req == '1')
    - $req ?

    , . , monospaced . ( , ). , , . , .

    Content-Type mail(....) ( From), From \r\n. .
    , win1251 , , . . .

  8. #8
    Registered User
    Join Date: Apr:2007
    Location: Sliven, Bulgaria
    Posts: 8
    . , ( ) php-, .

    .

    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |