J
|
Jane 8/11/2009 |
Hi, |
J
|
jalongi author 8/15/2009 |
This is driving me crazy. Below is simple php code to send an email to yahoo. It works and the mail ends up in the inbox. |
M
|
maali 8/16/2009 |
This is driving me crazy. Below is simple php code to send an email to yahoo. It works and the mail ends up in the inbox. <?php $to = "name@yahoo.com"; $subject = "testmail"; $message="Password reminder"; $from = "name@domain.com"; $headers = "From: $from"; date_default_timezone_set("America/New_York"); mail($to,$subject,$message); echo "Mail Sent."; ?> This is the code from the remind.php form. The email here ends up in the yahoo spam folder. $password=$data[1]; $url = GetSiteUrl(); $url.=$_SERVER["SCRIPT_NAME"]; $message="Password reminder"."\r\n"; $message.="You asked to remind your username and password at"." ".$url."\r\n"; $message.="Username".": ".$data[0]."\r\n"; $message.="Password".": ".$password."\r\n"; $subject = "Password Reminder"; date_default_timezone_set("America/New_York"); mail ($data[2],$subject,$message); //runner_mail(array('to' => $data[2], 'subject' => "Password reminder", 'body' => $message)); ..... Why is this happening? They are both going out the same way. Thank you. Joe Alongi
|
J
|
jalongi author 8/22/2009 |
Hi Maali |
J
|
jalongi author 8/22/2009 |
FINALLY found the problem. Took the $url out of the message line and it went through. |