I am making a contact form on my website and, trying to submit it, I get two outcomes:
1. I wrote email in english, and, no matter how long it is, it is sent perfectly fine.
2. I wrote it in russian. If it is shorter than about 10 symbols - I get the email and it is even correctly rendered. If it is longer than that - I just never get this email!
my html header includes:
<meta charset="UTF-8" name="viewport" HTTP-EQUIV="Pragma">
my form:
<form method="post" action="a.php">
<input type="text" name="name">
<input type="submit">
</form>
my a.php:
<?php
$name = $_POST['name'];
$header = "From: Hi";
$header .= "Content-Type: text/plain; charset=utf-8";
$subject = "This is letter";
$email_to = "***my email***";
$message = "Name: $name."
mail($email_to, $subject, $message, $header);
?>
Please help, I don't have a clue on why is that and how to fix it.