Page 1 of 1

Sending E-Mail Problem

Posted: Fri Oct 17, 2003 2:03 pm
by sroussie
Hi,

I recently set up a basic contact form for a website. I tested it on my server at home, WIN 2000 and PHP, and it works fine. I get the e-mail. I have uploaded it to their server, UNIX, and while I get the response page after I submit the form, I never recieve the e-mail. The php.ini file shows the following:

sendmail_from = no value
sendmail_path = /usr/sbin/sendmail -t -i

I also changed permission on the php file after it was uploaded. It seems like it should work. Am I missing something?

Thanks,
Sue

Posted: Fri Oct 17, 2003 2:07 pm
by markl999
The first thing i'd check is the mail log, i'll presume you have access to do this ;)
Something like 'tail -10f /var/log/mail.log' then run your script and watch for any output in the log. If there's is output it should tell you what's wrong, if not then it's not getting that far and it's probably a permissions problem.

A way to test is to 'su - nobody' (or whoever apache runs as) and do
/usr/sbin/sendmail -t -i < somemailfile.txt
where somemailfile.txt is a valid email text file with all the email headers etc..

Good luck.

Posted: Fri Oct 17, 2003 2:26 pm
by sroussie
Thanks, I'll give it a shot.