mail() function problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leehonshing
Forum Newbie
Posts: 3
Joined: Wed Aug 25, 2010 4:11 pm

mail() function problem

Post 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
harshida_1909
Forum Newbie
Posts: 10
Joined: Thu Aug 26, 2010 2:23 am

Re: mail() function problem

Post 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.
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

Re: mail() function problem

Post 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?
leehonshing
Forum Newbie
Posts: 3
Joined: Wed Aug 25, 2010 4:11 pm

Re: mail() function problem

Post 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.
leehonshing
Forum Newbie
Posts: 3
Joined: Wed Aug 25, 2010 4:11 pm

Re: mail() function problem

Post 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
Post Reply