I have very simple HTML form:
<form action="email_ok.php" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="" size="50" required>
Email:<br>
<input type="text" name="mail" value="@" size="50" required><br>
Comment:<br>
<input type="text" name="comment" value="" size="50" required><br><br>
<input type="submit" value="SEND">
<input type="reset" value="Delete">
</form>
with php file email_ok.php
<?php
mail('myemail@mail.com', $_POST['name'], $_POST['mail'], $_POST['comment']); ?> <p>OK</p>
But I am still receiving empty mail. What is wrong? Sorry I am beginner.
Thanks a lot.