mrame Posted May 7, 2009 Share Posted May 7, 2009 I have problem in sending mail. I'm using Fedora Core release 6 - LINUX in my development server. I access this server from my local WINDOWS system. I'm trying to send mail from that linux server. But its not going. The mail server is another remote system. Code I used is: $recipients="ramesh.marimuthu@wipro.com"; $subject='Password of InventoryTool site'; $body='Hi '; $from="From: ramesh.marimuthu@wipro.com"; $mail=mail($recipients,$subject,$body,$from); if ($mail) {echo 'mail OK';} else {echo 'mail FAIL';} I get 'mail OK', but I dont receive the mail. What could be the problem? Should I change the configurations? Quote Link to comment https://forums.phpfreaks.com/topic/157201-sending-mail-in-php/ Share on other sites More sharing options...
revraz Posted May 7, 2009 Share Posted May 7, 2009 Did you check the server log for errors? Quote Link to comment https://forums.phpfreaks.com/topic/157201-sending-mail-in-php/#findComment-828436 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 If you are not receiving the mail, and you are using GMail, Hotmail, Yahoo, AOL etc, they are simply filtering it as SPAM. I highly doubt you can get around it, but you should contact your host and ask them what they suggest for you to use as headers etc for the mail function. If wipro.com is your domain name, I have had issues on my server of mail not being sent to any address @mydomain.com. I still have not found a resolution, but yea. Maybe your host will know why. Quote Link to comment https://forums.phpfreaks.com/topic/157201-sending-mail-in-php/#findComment-828529 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.