Here is my code at the moment (part of a form on another page):
<?
$to=$_POST['to'];
$from=$_POST['from'];
$message=$_POST['message'];
$subject=$_POST['subject'];
if(mail($to,"$subject",$message,"From: $from\n"))
{
echo "E-Mail sent sucessfully";
}
else {
echo "There was a problem sending the mail. Please go back
and check that you filled in the form correctly.";
}
?>
Please can someone tell me how to add header such as BCC, CC, priority, etc
Thanks
PS: is there any way to add attachments to this email form.