Form for sending emails from the site, why sends not understand that?

Hello, the site in fraemwork Kohana 3.1.
The form works, mail letters, cut the name of the theme, and the odd thing does with the message.

Code send
public function action_send()
{
$url = $_SERVER['HTTP_HOST']; 
$data = $_POST;
$valid = $data['captcha'];

if(Captcha::valid($valid)){

$namee = $data['namee'];
$email = $data['email'];
$phone = $data['phone'];
$question = $data['question'];

$info = "<table style="font-size:14px" width="100%" border="1" cellpadding="10" cellspacing="0">
<tbody>
the <tr>
<td width="300"><strong>name:</strong></td>
<td>".$namee."</td>
</tr>
the <tr>
<td><strong>E-mail: </strong></td>
<td>".$email."</td>
</tr>
the <tr>
<td><strong>Contact phone: </strong></td>
<td>".$phone."</td>
</tr>
the <tr>
<td><strong>Message: </strong></td>
<td>".$question."</td>
</tr>
</tbody>
</table>";

$settings = ORM::factory('setting')->find();

$config = Kohana::$config->load('email');
Email::connect($config);

$subject = "feedback" . $url . "";
$from = 'send@сайт.ru';
$message = $info;

$emails = explode(",", $settings->emails);
if(is_array($emails)){
foreach ($emails as $email) {
if (!empty($email)) {
$email = trim($email);
Email::send($email, $from, $subject, $message, true);
}
}
} 
echo json_encode(true);
}
else
{
echo json_encode('error_captcha');
}
die; 
}


Here's what to send:
825dcc0ac8404810a1dd827552f1ff35.jpgHere's what comes in the mail:
08ea82e18b584825890a8f5652a9fc3a.jpg
July 9th 19 at 11:08
3 answers
July 9th 19 at 11:10
The body of the email is incorrect: the structure of an html document is broken and it actuive encoding.
Please give an example of how to make and do the coding. - lavonne_Kloc commented on July 9th 19 at 11:13
: open the code for example this page of a toaster and take it as a basis - Uriah22 commented on July 9th 19 at 11:16
July 9th 19 at 11:12
To see the source code of received mail.
Perhaps the problem is the line breaks/encoding.
that's what in the code..

AAA:amibay
dimkasssiskgfgf@bk.ru
Akanbai of beagleboy: 89084494088
AeA aaaabbb baaaabbeeeee, aaaabbb baianai,
- lavonne_Kloc commented on July 9th 19 at 11:15
Avorite using <code> ... </code> - Uriah22 commented on July 9th 19 at 11:18
And it's like? in that wrap? - lavonne_Kloc commented on July 9th 19 at 11:21
The same thing that you did in the previous answer, only in the early to put < code > and the end < /code > (without spaces) - Daphne_Roob commented on July 9th 19 at 11:24
Have done so: c2n.me/3yxtfUj identity thing ! hnya. - lavonne_Kloc commented on July 9th 19 at 11:27
Yes not you did not understand me. :( - Daphne_Roob commented on July 9th 19 at 11:30
: So give me an example I above code was off. - lavonne_Kloc commented on July 9th 19 at 11:33
July 9th 19 at 11:14
No escape and should lead to the same encoding.
and how to do it where to write it? - lavonne_Kloc commented on July 9th 19 at 11:17
Html-encode the analogue in this language, continue to investigate in the inbound encoding is the encoding of the letter - Uriah22 commented on July 9th 19 at 11:20
I did not understand what to do. - lavonne_Kloc commented on July 9th 19 at 11:23

Find more questions by tags PHPKohana