Tutaj ten fragment kodu:
$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; $email_to = $row['user_email']; $topic = $lang['Title_Email_Remind_Password']; $tresc = sprintf($lang['Email_Message_Remind_Password'], '<a href="http://'.$_SERVER['HTTP_HOST'].(str_replace('/login.php', '', $_SERVER['PHP_SELF'])).'/reset_id-'.$new_password.'.htm">', '</a>');
Gdzie zmienne z langami wyglądają tak:
$lang['Title_Email_Remind_Password'] = 'Przypomnienie hasła'; $lang['Email_Message_Remind_Password'] = '<html>Witaj!<br>Poprosiłeś o zresetowanie Twojego hasła. W celu dokończenia tego procesu, kliknij w poniższy link:<br>Kliknij %sTUTAJ%s<br><br>Pozdr.</html>';
Kodowanie plików to UTF-8 bez BOM.
Tak to wygląda: