- Edited
What is the correct syntax to add variables such as the email address I captured on a submitted form via POST variable to my email function.
$email = $_POST['email'];
$headers = array(
'From' => 'webmaster@example.com', //I would like this to be $email variable from form
'Reply-To' => 'webmaster@example.com',
'X-Mailer' => 'PHP/' . phpversion(),
'MIME-Version' => '1.0',
'Content-Type' => 'text/html; charset=iso-8859-1'
);