Answer the question
In order to leave comments, you need to log in
What are the glitches in a letter to gmail?
I make a plate on js, it is generated and completely the same, all classes in the html itself through style, although there are no classes there, I almost
send it via php to soap:
<?php
$recepient = "мое мыло@gmail.com";
$subject = "заголовок письма";
$data = $_POST["data"];
$prev = "<html><body>";
$end = "</html></body>";
$message = $prev .$data . $end;
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type: text/html; charset=utf-8 \r\n";
// дополнительные данные
//$headers .= "From: Павел <от@gmail.com>\r\n"; // от кого
//$headers .= 'Cc: копия@ya.ru' . "\r\n"; // копия сообщения на этот адрес
//$headers .= "Bcc: скрытая@копия.ru\r\n"; // скрытая копия сообщения на этот
mail($recepient, $subject, $message, $headers);
Answer the question
In order to leave comments, you need to log in
it turned out that gmail does not understand long lines correctly, so there was such a tricky bug. I cut the lines and everything began to work fine
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question