This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in using mail function

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite possibly. Ask the administrator of your mail server to investigate and then change things based on their recommendation.
 
Nick Charles
Ranch Hand
Posts: 71
Linux PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
jQuery PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try checking if it is true
Change:

To:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic