How can one assign $_POST variables to the PHP mailer() 'From:' header parameter?
Here's what I tried:
$toEmail="email@example.com";
$formSubject=$_POST["esubject"];
$formComment=$_POST["comment"];
$header= 'From: $_POST["eaddress"]';
mail($toEmail, $formSubject, $formComment, $header)) {
The subject and comments are working correctly, but the From: turns the variable into a string.