Click to See Complete Forum and Search --> : Quick Question


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. ;)

pyro
08-01-2003, 04:55 PM
It doesn't sound like a problem with the PHP, but with the way Yahoo! mail handles the mail. Also, in that script, I don't see my header info... ;)

Jick
08-01-2003, 08:04 PM
I'm not sure I know what you mean by header info? I just copied this from one of your previous post in the PHP forum!

pyro
08-01-2003, 11:05 PM
Lol... I just ment the copyright info... You can find the full script at http://www.webdevfaqs.com/php.php#mailer