Can a normal user send mail via which means?Yes, all users on a unix box should be able to send email. From a prompt:
e On Feb 23, 2004, at 11:35 AM, Chris Hewitt wrote:
Elijah A. Chancey wrote:
I'm having difficulty with the php mail() function. Freebsd 4.9, apache 2.0.48, php 4.3.4Can a normal user send email? If so then it is a php problem, if not a sendmail one. I think that will help to narrow it down a bit.
Here is my code:
<?php mail("[EMAIL PROTECTED]", "subject", "body"); ?>
The problem: The mail is not being delivered to my address. PHP returns no errors.
HTH Chris
mail -s "mysubject" [EMAIL PROTECTED] <filewithmessage
will do it. Do a "man mail" for more information. It will use whatever email system you have set up on the computer, thus it is a good test to see where email may be going wrong. When you have email going from a normal user OK then its time to check from php again.
HTH Chris