Hirdetés

Keresés

Hirdetés

Új hozzászólás Aktív témák

  • 1ed

    csendes tag

    válasz Louloudaki #3349 üzenetére

    Szia!

    Nem, pl beírhatsz ilyen headert is:
    Content-Type: text/plain; charset=UTF-8

    A gmailben meg tudod nézni a "Show original"-ra kattintva (lenyíló menü a jobb oldalon a Reply-nál) hogy is néz ki az eredeti levél headerestől, mendenestől.

    Ha alapból nem utf-8-at küld akkor, egy példa utf-8 levél küldésére php.net-ről (nemtudom jó e):

    <?php
    function mail_utf8($to, $subject = '(No subject)', $message = '', $from) {
    $header = 'MIME-Version: 1.0' . "\n" . 'Content-type: text/plain; charset=UTF-8'
    . "\n" . 'From: Yourname <' . $from . ">\n";
    mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header);
    }
    ?>

    Persze az is lehet hogy az outlook nem kezeli jól az utf8-as levelet.
    Ilyenkor lehet próbálkozni mondjuk ezzel:

    iconv('utf-8', 'ISO-8859-2', $name);

    ''He told me that no one should look for the answer unless they have to because once you see it, everything changes. Your life and the world you live in will never be the same. It's as if you wake up one morning and the sky is falling.''

Új hozzászólás Aktív témák