Answer the question
In order to leave comments, you need to log in
Why doesn't SMTP send Russian characters to mail?
There is a function of sending a letter with Russian text
If you send mail to Yandex / Gmail - everything is sent as it should.
If you send it to Mail.ru, then the Russian text simply will not reach
Gmail:
Answer the question
In order to leave comments, you need to log in
Three simple steps to solve this problem:
1. Look at the calendar and clarify what century it is in the yard.
2. Carefully select this code and press the Del button
3. Download phpmailer
4. Forget all these handicraft picks like a bad dream.
As a result, the code should look something like this:
require 'PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->setFrom('[email protected]', 'First Last');
$mail->addAddress('[email protected]', 'John Doe');
$mail->Subject = 'PHPMailer file sender';
$mail->msgHTML("My message body");
$mail->send();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question