1
1
16Gb2018-08-27 11:19:56
Email
16Gb, 2018-08-27 11:19:56

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);

What options do you offer?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-08-27
@Rsa97

First you need to make sure that all the servers through which the letter will go support UTF8SMTP according to RFC5336 . Otherwise, a Russian address cannot be specified in the From field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question