Page 1 of 1

mail() function problem

Posted: Wed Aug 25, 2010 4:17 pm
by leehonshing
I cannot send email by mail() function, can someone help me to tackle the problem? I have already configure

[mail function]
sendmail_path = /usr/sbin/sendmail

my system is Ubuntu 9.1, php 5.2

Thanks a lot

Re: mail() function problem

Posted: Thu Aug 26, 2010 7:36 am
by harshida_1909
the page which contain the mail() function runnng on the server or localhost, if it is working in localhost then u r not able to send the mail.

Re: mail() function problem

Posted: Thu Aug 26, 2010 10:18 am
by agriz
What is the error message?

Code: Select all

error_reporting(E_ALL);

mail("...");
I am sure you know all this. Can you post the error / warning message?

Re: mail() function problem

Posted: Thu Aug 26, 2010 6:08 pm
by leehonshing
harshida_1909 wrote:the page which contain the mail() function runnng on the server or localhost, if it is working in localhost then u r not able to send the mail.
Thanks a lot I think this is the problem.

Re: mail() function problem

Posted: Thu Aug 26, 2010 6:08 pm
by leehonshing
agriz wrote:What is the error message?

Code: Select all

error_reporting(E_ALL);

mail("...");
I am sure you know all this. Can you post the error / warning message?

thanks then