I got about 1000/1450 back due to these types of errors
Unroutable mail domain "yahoo.com"
Unroutable mail domain "hotmail.com"
Unroutable mail domain "aol.com"
etc...
What does this mean? I doubt it's an error in the code because it sent to the less popular domains.
Here's my code anyways.
Code: Select all
if($action == "gml")
{
function make_clickable($text)
{
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
$ret = substr($ret, 1);
return($ret);
}
$query = mysql_query("SELECT username, email FROM users WHERE activated = 'y'");
$i = 1;
while($array = mysql_fetch_assoc($query)){
$recipient = $array['email'];
$subject = stripslashes($_POST['subject']);
$body2 = "Hello, ".$array['username']."<BR><BR>
".stripslashes(nl2br(make_clickable($_POST['body'])))."<BR><BR>
<B>Login Info</B><BR>
--------------------------<BR>
<B>URL:</B> http://www.showmypro.com<BR>
<B>Username:</B> ".$array['username']."<BR>
<B>Password:</B> Not included for security purposes<BR><BR>
(if you forgot your password, go to http://www.showmypro.com and request a new one.)<BR>
--------------------------<BR><BR>
-- You are receiving this email because you are a member of showmypro.com.";
$additional_headers = "From: scrotaye@showmypro.com\r\n";
$additional_headers .="Content-type: text/html; charset=iso-8859-1\r\n";
mail($recipient, $subject, $body2, $additional_headers);
echo $i++;
echo "<BR>";
sleep(1); }
}
?>