Re: mail() sendmail problems

From: Date: Mon, 23 Feb 2004 18:40:42 +0000
Subject: Re: mail() sendmail problems
References: 1 2 3  Groups: php.install 
Request: Send a blank email to php-install+get-12842@lists.php.net to get a copy of this message
Elijah A. Chancey wrote:
Can a normal user send mail via which means? 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.4 Here is my code: <?php mail("sysadmin@netlinkip.com", "subject", "body"); ?> The problem: The mail is not being delivered to my address. PHP returns no errors.
Can 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. HTH Chris
Yes, all users on a unix box should be able to send email. From a prompt:
mail -s "mysubject" toyou@yourbox.com <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

« previous php.install (#12842) next »