Hello friends! There is a question, did sending letters using php. On Denver works well, letters come. Tested on jino hosting first worked then the error came out. After about 30 minutes - 1 hour, the letters worked normally again, and that's how it was constantly. I will send a few letters then an error, it will take time and work again. What is the problem? Here is the actual code itself:
$stext = "Текст"; $subject = "Тех поддержка"; $headers = "From: ".$adminmail."\n"; $headers .= "Reply-to: ".$adminmail."\n"; $headers .= "X-Sender: < http://".$cfgURL." >\n"; $headers .= "Content-Type: text/html; charset=windows 1251\n"; $send = mail($adminmail,$subject,$stext,$headers); if(!$send) { print "Ошибка почтового сервера! Приносим извинения за предоставленные неудобства"; } else { print "Сообщение отправлено"; }
Can make sending with smtp? What do you advise. And yet, the mail $ adminmail put and Yandex and gmail, and even hosting.