Hello,
I'm pretty new to PHP and have set up a PHP email form that users can enter into my web site. It works pretty good, but I would like to set it up so that the email sent to my inbox has high priority so that I notice it.
I go through Godaddy.
Here's part of my first code:
<BODY>
<?php
$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$visitor = $_POST['visitor'];
$visitormail = $_POST['visitormail'];
$notes = $_POST['notes'];
$todayis = date("l, F j, Y, g:i a") ;
$subject = "An Email from your web site";
$notes = stripcslashes($notes);
$message = "Sent: \n $todayis \n\n
From: \n
$visitor ($visitormail) \n\n
Message:
$notes \n\n\n
Browser Information: $httpagent \n
Additional Information: IP = $ip \n
";
$from = "From: $visitormail\r\n";
mail("me@nono.com", $subject, $message, $from);
?>
and it take the user input from this page:
<FORM METHOD="POST" ACTION="thankyou.php" onSubmit="return checkIt(this);">
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
The code works perfectly fine, but when I start to put $header functions in there with priority settings, it doesn't work??
Any help would be appreciated.
jj