Current location: Hot Scripts Forums » Programming Languages » PHP » Php Mail Function Not Working(help!!!!!)


Php Mail Function Not Working(help!!!!!)

Reply
  #1 (permalink)  
Old 02-22-09, 03:11 PM
bitejones bitejones is offline
New Member
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Php Mail Function Not Working(help!!!!!)

i have been trying to use the php automatic mail function to send email to users who have forgotten their passwords....this function was working perfectly fine, i was recieving the emails perfectly, however i realise that its no longer working, and i did not touch the code, im not a expert coder so i know better not to touch it...
this is the code

$to= $search_email;
$subject="Forget Password";
$message="Hello Your Password as been recovered, Please do not reply to this mail, your password is ";
$message.=$search_password;
$from="forget_password@xoionlin.net";
$headers="From: $from";
if(
mail($to,$subject,$message,$headers)){
$sign=1;
}

as i said this was working perfectly before, all of a sudden its no longer working, HELP PLEAS
Reply With Quote
  #2 (permalink)  
Old 02-22-09, 03:48 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
When you say "no longer working", do you mean mail is not being received? This may be due to spam screening on the receiving end, or else (possibly) the host has altered some settings without your knowledge.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 02-22-09, 03:59 PM
bitejones bitejones is offline
New Member
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Php Mail Function Not Working!!!

Yes The Mail Is Longer Been Delivered To The Inbox...and It Was Working Fine Before....
Reply With Quote
  #4 (permalink)  
Old 02-23-09, 04:04 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by bitejones View Post
Yes The Mail Is Longer Been Delivered To The Inbox...and It Was Working Fine Before....
Like I said earlier, this may be due to spam screening on the receiving end.

1) Try sending to several different addresses and see what happens.

2) You can also check the return value of the mail() function to see if it's returning a "1". This isn't an infallible test, but if it's not returning "1" then it indicates that you have a problem on the sending end.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #5 (permalink)  
Old 02-23-09, 05:29 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
In addition - check the error log, if possible.

Sometimes, servers get upgraded and there are version conflicts or configuration problems.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] php mail function zodehala PHP 4 07-27-08 04:44 PM
Attachement help needed sujata_ghosh Perl 18 06-22-07 01:00 PM
PHP Security alert: PHP mail() Function Lets Remote Users Inject E-mail Headers darkerstar PHP 4 04-29-07 07:14 PM
Mail in PHP jac2703 Web Servers 8 09-20-06 03:58 PM
mail() won't work with function() nassau PHP 5 02-16-05 07:16 PM


All times are GMT -5. The time now is 08:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.