ok... here is the code:
<?php
if (!$_POST[submit]) {
?>
!--- HTML CRAP HERE ---!
<?php
} else {
$mail_to = "myemailaddress@mydomain.com";
$headers = "From: $POST[sender_name] <$POST[sender_email]>";
$headers .= "X-Mailer: PHP 4.x";
$time_sent = date("m.d.Y @ H:i:sa");
$msg = "From: $POST[sender_name]:<$POST[sender_email]>\n";
$msg .= "--------------------------------------------------\n";
$msg .= nl2br($_POST[message]);
$msg .= "\n\n";
$msubject = "$POST[msg_priority]:$POST[subject]SENT on ($POST[time_sent])";
mail($mail_to,$msubject,$msg,$headers);
echo ("<div align=center><h1>Thanks, $_POST[sender_name], for emailing us, we will be in contact soon!</h1></div>");
}
?>
for some reason it "seems" to be working, but isn't actually sending mail... I have my php.ini set to my SMTP server (mail.comcast.net) and email set to my main email address... it goes through the script and I get the correct return of the echo after it "seems" to send the email... but I don't actually get the mail... I'm a little new to this, please bear with me 😃
also if it helps... running latest stable apache (2.0.47) and php4.3.3 on WinXP. I have ZoneAlarm pro... but apache has permissions, and it does the same even if I disable ZApro.
thanks in advance for any help you can give me! 🙂