Created a form, when I try to submit a site, I get an error "The site cannot process this request yet." Below is the send script code. What is the problem?

<?php // Переменные $name = $_POST['name']; $contact = $_POST['contact']; $car = $_POST['car']; $model = $_POST['model']; $year = $_POST['year']; $mailto = '12345@yandex.ru;' //Отправка mail($mailto ,$name ,$contact , $car , $model, $year ); ?> 

    1 answer 1

    The site cannot process this request yet - this is a 500 server error. The line below causes a critical interpreter error, due to which the script could not be processed.

     $mailto = '12345@yandex.ru;' //должно быть $mailto = '12345@yandex.ru'; 

    You pass too many parameters to the mail and possibly wrong, the function takes the following arguments:

    bool mail (string $ string, string $ subject, string $ message [, string $ additional_headers [, string $ additional_parameters]])

    Description of the function on the official website php.net