Answer the question
In order to leave comments, you need to log in
How to send letters from a Russian mail address via mail in php?
The site has a Russian domain and I accordingly want to send letters from a Russian address.
At first, the letters did not come at all, and then I added base64 encoding. Letters started coming in, but
the header looks like this
[email protected]
Below is the send code
$to = '****@gmail.com';
$subject = 'Подтверждение новой почты ';
$message = '111111111';
$headers = "From: info" . base64_encode("@блабла.рф"). "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
mail($to, $subject, $message, $headers);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question