Witam,
Mam taki fragment kodu:
// create email headers
$MIME = '1.0';
$CHARSET = 'text/html; charset=UTF-8';
$headers = 'From: '.$email_from."\r\n" .
'Reply-To: '.$email_from."\r\n" .
'MIME-Version: ' .$MIME. "\r\n" .
'Content-type: ' .$CHARSET. "\r\n" .
'X-Mailer: PHP/' . phpversion();
// send the email
@mail($email_it_to, $email_subject, $email_message, $headers);
// redirect
header("Location: $redirect_to");
die();
i za nic nie mogę zgadnąć dlaczego w otrzymanym mejlu wszystko jest w jednej linii.
Wyglada to tak: Imię: gruby email: [email protected] Komentarz: aącć; każde z pól powinno zaczynać się od nowej linii.
Jak wywalę Content-type to wszystko jest cacy.
Pozdrawiam,
J.