Ok, I am pulling data from a mySQL table and one of the fields is an email address field ..
The code looks like this...
$query ="SELECT username, password, email, country FROM xx_name"; $result = mysql_query($query); while ($section = mysql_fetch_array($result)) { // Here is our password.... $db_user = $section[0]; $db_pass = $section[1]; $db_email = $section[2]; $subject = "Subject goes here"; $body = "Email text goes here"; $from = "From: doubli@sigames.com\nX-Mailer: PHP/" . phpversion(); mail("$db_email", "$subject", "$body", "$from"); print ("Emailed : $db_user at $db_email with the password $db_pass<BR>");
The problem is that around 80% of emails never arrive to the people concerned yes their addresses are valid. The process takes around 7 seconds to run (it's only pulling around 37 records).
Ideas?