Answer the question
In order to leave comments, you need to log in
How to solve the problem when sending emails to outlook?
Good day!
I send emails this way.
Everywhere everything is in perfect order (mail.ru, gmail, yandex).
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$msg = $_POST['msg'];
$email_to = "[email protected]";
$mail = '
Имя:'. $name .'
Телефон:'. $phone .'
Email:'. $email .'
Сообщение:'. $msg .'
';
$headers= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=\"utf-8\" \r\n";
$headers .= "From: Euro sito <[email protected]> \r\n";
$result = mail($email_to, 'Обратная связь', $mail, $headers);
$link = "Location: ".getenv("HTTP_REFERER");
хЛЪ:п═я┐я│я│п╨п╦
рЕКЕТНМ:я┌п╣я│я┌
Email:я▐п╥я└п╨п╟
яННАЫЕМХЕ:п╪п╟я└п╟п╨п╟
Answer the question
In order to leave comments, you need to log in
And if you try this, what will happen?
$result = mail($email_to, "=?utf-8?B?" . base64_encode('Обратная связь') . "?=", $mail, 'Content-type: text/plain; charset="UTF-8"\r\n')
Try
1.header('Content-Type: text/html; charset=utf-8');
2.
Set encoding to utf-8 without BOM
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question