my dog learned polymorphism
The moose likes PHP and the fly likes Problem in using mail function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "Problem in using mail function" Watch "Problem in using mail function" New topic

Problem in using mail function

Kunal Lakhani
Ranch Hand

Joined: Jun 05, 2010
Posts: 622
I have hosted a website in server. I am also using mail function
Below is my code :

All the sessin attributes returns right value. There is no error displayed. but the mail is not sent. I need to know if i have to change any configuration

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Quite possibly. Ask the administrator of your mail server to investigate and then change things based on their recommendation.
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

Look at the php.ini file on the sebsite server to see how mail is configured.

Also, what OS is the server running? Mail is configured differently depending on the host OS. Also, what email server are you using? Exactly configuration also depends on it. (Setting up PHP at work to interact with the corporate Exchange server was not straight forward due to the security restrictions put in place by our IT department...)
Jared Drake

Joined: Aug 26, 2012
Posts: 5

Try checking if it is true


I am a writer for Web Programming Tutorial and Reference
I agree. Here's the link:
subject: Problem in using mail function
It's not a secret anymore!