There is a form in which user enters name and phone number. Need to send this data from a form to email using PHPMailer. I already asked this question but proper answer is not found. I don't know much about PHP, so please help with the answer to example code, and not article that lists the opportunity PHPMailer-and. Thanks in advance!
<form method="post" action="action.php">
<input type="text" name="nameplace" class="form-control" id="exampleInputName2" placeholder="Enter your name">
<input type="text" name="phonenumber" class="form-control" id="exampleInputName2" placeholder="Enter your phone">
<button type="submit" name="submit" id="zakaz" class="btn btn-success">Checkout</button>
</form>