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
mail() function problem
Moderator: General Moderators
-
harshida_1909
- Forum Newbie
- Posts: 10
- Joined: Thu Aug 26, 2010 2:23 am
Re: mail() function problem
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
What is the error message?
I am sure you know all this. Can you post the error / warning message?
Code: Select all
error_reporting(E_ALL);
mail("...");-
leehonshing
- Forum Newbie
- Posts: 3
- Joined: Wed Aug 25, 2010 4:11 pm
Re: mail() function problem
Thanks a lot I think this is the problem.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.
-
leehonshing
- Forum Newbie
- Posts: 3
- Joined: Wed Aug 25, 2010 4:11 pm
Re: mail() function problem
agriz wrote:What is the error message?
I am sure you know all this. Can you post the error / warning message?Code: Select all
error_reporting(E_ALL); mail("...");
thanks then