weird email issue
Posted: Mon Apr 17, 2006 1:01 am
I have a script that sends an email to my computer email account.. but what im trying to do is get it to send to my Cell phone. I send the email from outlook to my cell, through the same domain name.. it works fine. However, when i place my script on a differant server, my cell phone recieves the message fine. im confused.. i checked the PHP settings (phpinfo) everything looks the same on both servers.
Here's the script, perhaps someone else knows something i might be able to try.
Here's the script, perhaps someone else knows something i might be able to try.
Code: Select all
<?
$HTTP_POST_VARS;
$result = mysql_query("SELECT * FROM authuser WHERE id = \"$id\" ");
while($myrow = mysql_fetch_assoc($result))
{
$number = $myrow['number'];
$user_carrier = $myrow['user_carrier'];
}
$result = mysql_query("SELECT * FROM providers WHERE carrier_name = \"$user_carrier\" ");
while($myrow = mysql_fetch_assoc($result))
{
$carrier_address= $myrow['carrier_address'];
}
$to = "$number$carrier_address";
$subject = "";
$message_clean = trim(stripslashes($message));
@mail($to, $subject, $message_clean, "From:$Emailer<$Emailer>\nReply-to:$Emailer2\nReturn-Path:messages@mydomain.com");
//just to see where the message is being sent i through this in there for testing, it still displays the correct email address.
echo $to;
?>