Ok I get the basics of the mail function in PHP right I just got one questions; where could I place the email that it is send from, is it in the header section?
<?php
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Taking the example above would the From: statement in the header be put inside the email itself or would it be placed together with the subject?