ainoy31 Posted February 22, 2008 Share Posted February 22, 2008 Hello- I do not know if this is an php mail issue or not. I am using the mail() in php to auto generate emails. My question is that when I go and check my inbox say at Yahoo, the email that is sent goes straight to the Bulk folder not the main inbox. Here is my code: $name = $_POST['name']; $email = $_POST['address']; $subject = $_POST['subject']; $message = "An inquiry from " . $name . ' ' . 'via' . ' ' . $email . "\n\n"; $message .= $_POST['message']; $to = 'xxx@yahoo.com'; $headers = "From: XXX\r\n" . "X-Mailer: php"; if(mail($to, $subject, $message, $headers)); { ......so and so } Much appreciation. Ainoy Quote Link to comment Share on other sites More sharing options...
mpharo Posted February 22, 2008 Share Posted February 22, 2008 That is prolly an issue with your Yahoo account... Quote Link to comment Share on other sites More sharing options...
jeremyphphaven Posted February 22, 2008 Share Posted February 22, 2008 Yah man, this can be a number of things. Your domain may be blacklisted, your bulk settings are picking up that it's PHP sending it and spam marking it, etc. Try changing the header line to this. $headers = 'From: XXX'."\r\n"; This MAY work if yahoo is bulding it because PHP is the identified X-mailer. Quote Link to comment Share on other sites More sharing options...
ainoy31 Posted February 22, 2008 Author Share Posted February 22, 2008 Thanks man. Just wanted to see another intake... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.