Jump to content

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="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?

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.