Jump to content

Sending Mail in PHP


mrame

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.