Jick
08-01-2003, 09:54 AM
I have this form here (http://kd7pyo.infinitypages.com/). Click on the contact link in the upper right hand corner. It's so users can send me questions/comments/whatever and I tested it and when someone sends me a message it's showing up in my Bulk mail in Yahoo!. If you don't know already Bulk mail is e-mails that are sent to you from a mailing list. I want my messages from my form to show up in my inbox. Here is the php code for my form:
<?PHP
$to = "mjdimick@yahoo.com"; #set address to send form to
$subject = "The Dandy Group - Form Results"; #set the subject line
$headers = "From: contact@thedandygroup.tk"; #set the from address
$forward = 1; # redirect? 1 : yes || 0 : no
$location = "thankyou.php"; #set page to redirect to, if 1 is above
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "Below is the result of your contact form. It was submitted on $date at $time.\n\n";
foreach ($_POST as $key => $value) {
if ($key!="submit") $msg .= ucfirst ($key) ." : ". $value . "\n";
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo ("Thank you for submitting our form. We will get back to you as soon as possible.");
}
?>
I'm not sure why it's sending it to my Bulk Mail but it is and I want it to be sent to my inbox. Can some one help me out here? Thanks. ;)
<?PHP
$to = "mjdimick@yahoo.com"; #set address to send form to
$subject = "The Dandy Group - Form Results"; #set the subject line
$headers = "From: contact@thedandygroup.tk"; #set the from address
$forward = 1; # redirect? 1 : yes || 0 : no
$location = "thankyou.php"; #set page to redirect to, if 1 is above
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "Below is the result of your contact form. It was submitted on $date at $time.\n\n";
foreach ($_POST as $key => $value) {
if ($key!="submit") $msg .= ucfirst ($key) ." : ". $value . "\n";
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo ("Thank you for submitting our form. We will get back to you as soon as possible.");
}
?>
I'm not sure why it's sending it to my Bulk Mail but it is and I want it to be sent to my inbox. Can some one help me out here? Thanks. ;)