businessman332211@hotmail.com Posted August 14, 2006 Share Posted August 14, 2006 <?phpwhile ($row = mysql_fetch_array($emailquery)) { $to = "{$row[email]}"; $subject = "Funny Email Forwards Database Results"; $message = "You can see the results at this page: "; $message .= "http://www.funnyemailforwards.com/apex/limitedemailresults.php"; echo "<br />"; echo "{$row[email]}"; echo "<br />"; //mail($to, $subject, $message); }?> That is the script I am using to debug, it prints out all the emails, but when I cut it down and use my original script <?phpwhile ($row = mysql_fetch_array($emailquery)) { $to = "{$row[email]}"; $subject = "Funny Email Forwards Database Results"; $message = "You can see the results at this page: "; $message .= "http://www.funnyemailforwards.com/apex/limitedemailresults.php"; mail($to, $subject, $message);?> It's not seeming to email them, I know this, because my email is in the database too, but it's not sending me an eamil, so I am guessing the others aren't either, adn I can't keep testing them and sending them emails over and over again, is there anythign wrong with this. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 14, 2006 Share Posted August 14, 2006 I don't know if this is the problem, but there's no reason to have quotes around a single variable.$to = $row['email']; Link to comment Share on other sites More sharing options...
businessman332211@hotmail.com Posted August 14, 2006 Author Share Posted August 14, 2006 I played with it, but I am still having issues, I think I uncovered the root to the problem, so I am playing with that right now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now