Code: Select all
$email = $_POST["email"];
$to = 'myEmail@gmail.com' . ', ';
$subject = "Submitform";
$message = $_POST["myHTML"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
if(mail($to, $subject, $message, $headers))
echo "send OK"; }
echo "not send";
"myHTML" is a text input where contains a HTML code, around 5000 chars.
The problem is that when received in email source code, HTML code is divided into some small groups (in the same length, around 1200 chars) by inserted some 'line-feed'.
Any one has experience in this situation? How can I repair the problem?