mage67 wrote in php

PHP mail() function

In PHP, an email is sent using the following syntax

mail($to,$subject,$body,$headers);

However, I can't seem to get the From field in the sent email to set to a form variable. How can this be done? Anyone know?