ne otpravljaetsja pismo s saita .Vidaet oshibku 500.Ja dumaju chto to v scripte ne pravilno no ne mogu ponjat chto registration.html Код (Text): <form action="form_action.php" onsubmit="return sendform()" method="post"> <div id="user" title="USER" style="font-style:italic; font-size:12px;"> <table> <tr><td style="padding:10px"> <p>Nimi</p> <input name="imja" type="text" style="background-color:#F1F1F1"/></td> <td height="100px" style="padding:10px"> <p>Perenimi</p> <input name="fam" type="text" style="background-color:#F1F1F1"/></td> <br /> <td style="padding:10px"> <p>Telefon</p> <input name="phone" type="text" style="background-color:#F1F1F1"/> <td style="padding:10px"> <p>Email</p> <input name="mail" type="text" style="background-color:#F1F1F1"/> </td></tr> <tr> <td> <p>Massaaz</p> <select name="teenused" style="background-color:#F1F1F1" > <option selected="selected" value="Uldmassaaz(1,5t)">Uldmassaaz(1,5t)</option> <option selected="selected" value="Uldmassaaz(1t)">Uldmassaaz(1t)</option> <option selected="selected" value="Seljaravi massaaz(30min)">Seljaravi massaaz(30min)</option> <option selected="selected" value="Olavoo+kael+kaed(30min)">Olavoo+kael+kaed(30min)</option> <option selected="selected" value="Jala labade massaaz(20min)">Jala labade massaaz(20min)</option> <option selected="selected" value="0saline(lokaalne)massaaz(30min)">0saline(lokaalne)massaaz(30min)</option> <option selected="selected" value="0saline(lokaalne)massaaz(20min)">0saline(lokaalne)massaaz(20min)</option> <option selected="selected" value="Tselluliidimassaaz(1t)">Tselluliidimassaaz(1t)</option> <option selected="selected" value="Tselluliidimassaaz(30min)">Tselluliidimassaaz(30min)</option> <option selected="selected" value="Meemassaaz(1,5t)">Meemassaaz(1,5t)</option> <option selected="selected" value="Meemassaaz(1t)">Meemassaaz(1t)</option> <option selected="selected" value="Meemassaaz(30min)">Meemassaaz(30min)</option> <option selected="selected" value="Lumfimassaaz(1,5t)">Lumfimassaaz(1,5t)</option> <option selected="selected" value="Aroomiteraapia(1,5t)">Aroomiteraapia(1,5t)</option> <option selected="selected" value="Aroomiteraapia(1t)">Aroomiteraapia(1t)</option> </select></td> <td> </td> </tr> </tr> </table> </div> <input name="otpravit" type="submit" value="Saatma" style="background-color:#F1F1F1; margin-top:20px;"/> <input type="reset" value="Kustuta" style="background-color:#F1F1F1"/> </form> form_action.php Код (Text): <? $a=$_POST["a"]; $error=""; if($a) { $name=$_POST["imja"]; $fam=$_POST["fam"]; $tel=$_POST["phone"]; $mail=$_POST["mail"]; $teenused=$_POST["teenused"]; $name=strip_tags(trim($name)); $fam=strip_tags(trim($fam)); $tel=strip_tags(trim($tel)); $mail=strip_tags(trim($mail)); $teenused=strip_tags(trim($teenused)); if(empty($name)) { $a=""; $error=$error."Вы не ввели имя<br>"; } if(empty($fam)) { $a=""; $error=$error."Вы не ввели fam<br>"; } if(empty($tel)) { $a=""; $error=$error."Вы не ввели tel<br>"; } if(empty($mail)) { $a=""; $error=$error."Вы не ввели email<br>"; } else { if(!preg_match("|^[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,6}$|i", $mail)) $a=""; $error=$error."Введите email pravilno<br>"; } if(empty($teenused)) { $a=""; $error=$error."Вы не ввели uslugu<br>"; } if(empty($error)) { $to = "info@111111.11" ; $subject = "заявка на услугу"; $mes= ' Имя: '.$name.'<br> familija: '.$fam.'<br> Телефон: '.$tel.'<br> Email: '.$mail.'<br> Комментарий:<br> '.$teenused.' '; $headers = "Content-type: text/html; charset=windows-1251 \r\n"; $headers .= "From: Site <'.$mail.'>\r\n"; if(mail($to, $subject, $mes, $headers)) { echo 'Спасибо за заявку!'; } } } ?>
1)ПРопиши в htaccess смтп данные 2)насколько глючный хостинг как там смтп 3)Попробуй прописать в обработчик print_r($_POST)для отладки и прочее до функции маил 4)да тут 15-30 минут отладки в принципе