How to make a secure PHP mail send for HTML forms?

Hello. I'm hosting a sucky mail sending script from a friend's website and I want to replace it for a secure version of it. I've looked at Google but due to so much misinformation I'm not sure on how to proceed.

Actual code is:

$first_name = $_POST['nombre'];
$email_from = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
$telephone = $_POST['telefono'];
$comments = $_POST['mensaje'];

$email_message = "Nombre: ". $first_name ."\n";
$email_message .= "Email: ". $email_from ."\n";...
Code (markup):
How to make a secure PHP mail send for HTML forms?

from PHP http://ift.tt/1NmqdET
via IFTTT
Previous
Next Post »
Thanks for your comment