aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "Problem in using mail function" Watch "Problem in using mail function" New topic
Author

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


kunal
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18657
    
    8

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
Greenhorn

Joined: Aug 26, 2012
Posts: 5

Try checking if it is true
Change:

To:


I am a writer for Web Programming Tutorial and Reference
 
 
subject: Problem in using mail function