I'm sending a form mail with php.
I need to set the "from:" to the form fields which live in the variables: $user_name and $user_lastname.
So i tried:
$headers .= 'From: ' . $user_name . " " . $user_lastname . "
";
$headers .= 'X-Mailer: PHP/' . phpversion();
But then i get "unknown sender" instead of name and last name.