sorry for my lousy English
But I did not find a solution in the entire forum.
The purpose of the post - I was trying to create a quick order form for an online store, where the buyer would simply send me an order for mail from the goods card.
After some attempts the letter was never received, but the quota for sending letters was exceeded - out of the kuot 128% (64 letters).
I will result in part the code:
<?php
$product_name = trim($_POST['product_name']);
$product_price = trim($_POST['product_price']);
$customer_name = trim($_POST['customer_name']);
$customer_phone = trim($_POST['customer_phone']);
$customer_message = trim($_POST['customer_message']);
$mail_subject = "SALE-Б/У.kz - быстрый заказ (".date('d.m.Y H:i').")";
if (isset($customer_name) && $customer_name!=="" && isset($customer_phone) && $customer_phone!=="") {
$store_email = "danilawp@gmail.com";
$fast_order_email = "saleby.kz@mail.ru";
$product_name = iconv("UTF-8", "windows-1251", $product_name);
$product_price = iconv("UTF-8", "windows-1251", $product_price);
$subject = '=?windows-1251?B?'.base64_encode($mail_subject).'?=';
$customer_name = iconv("UTF-8", "windows-1251", $customer_name);
$customer_phone = iconv("UTF-8", "windows-1251", $customer_phone);
$customer_message = iconv("UTF-8", "windows-1251", $customer_message);
$subject = '=?windows-1251?B?'.base64_encode($mail_subject).'?=';
$headers = "From: <".$fast_order_email.">\r\n";
$headers = $headers."Return-path: <".$fast_order_email.">\r\n";
$headers = $headers."Content-type: text/plain; charset=\"windows-1251\"\r";
mail($store_email,$mail_subject,"Быстрый заказ\n\nДата заказа: ".date('d.m.Y H:i')."\nЗаказчик: ".$customer_name."\nТелефон: ".$customer_phone."\nКомментарий: ".$customer_message."\n\nТовар: ".$product_name."\nЦена: ".$product_price,$headers);
} else {
echo "empty";
};
?>
If there is a possibility help please understand
And what will happen if I get used to the quota