Web Hosting Talk







View Full Version : Sendmail problem.....


Synergy
11-25-2001, 07:53 PM
I have 2 sites running Phpnuke and postnuke and the problem is that when users sign up the server were supposed to send them an email along with their password.... Well this isn't happening.... Can anyone hook it up with some information :)

netsolutions
11-25-2001, 09:12 PM
I had the same problem with a couple message boards. Is your sendmail /usr/sbin/sendmail ?

Synergy
11-25-2001, 09:38 PM
Yup...

netsolutions
11-25-2001, 11:24 PM
Have you tried using

/usr/sbin/sendmail -t

Synergy
11-26-2001, 12:14 AM
Do you mean in the php script or within the configuration of php.ini on the server?

netsolutions
11-26-2001, 01:15 AM
In the configuration script for the message board it should ask you to enter the destination of sendmail. You probabley have it configured like this:

/usr/sbin/sendmail

Try to enter this instead:

/usr/sbin/sendmail -t

The Prohacker
11-26-2001, 08:46 AM
In some distrobutions of PHP on Cpanel servers the mail() function isn't included....

bobcares
11-26-2001, 08:58 AM
Hi!
The first step would be to see if it is a sendmail problem or a php problem.
Here's what you could do. Write a simple program in php that would send you mail. If it works then there is something wrong with the way you have configured nuke.
Try something like this

<?
mail("yourname@yourdomain", "My Subject", "Line 1\nLine 2\nLine 3");
echo "It worked";
?>


If you receive a mail then there is something wrong with your nuke configuration. Else you must recompile php to support mail. This is quite easy and straight forward..


I hope this helps.

Have a great day :)

Regards
Amar

Synergy
11-26-2001, 09:21 PM
Its a Cpanel Problem with their owned compiled version of php i think.

netsolutions
11-26-2001, 09:36 PM
I had the same problem. Did you try this:

/usr/sbin/sendmail -t