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="[email protected]"; $subject='Password of InventoryTool site'; $body='Hi '; $from="From: [email protected]"; $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? 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? 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. Link to comment https://forums.phpfreaks.com/topic/157201-sending-mail-in-php/#findComment-828529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.