Re: Please help , qmail with php problem , mail() can't send out email
| From: | Chris Hewitt | Date: | Sat, 11 Sep 2004 13:09:41 +0000 |
| Subject: | Re: Please help , qmail with php problem , mail() can't send out email | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14345@lists.php.net to get a copy of this message | ||
On Fri, 2004-09-10 at 10:25, info@cmck.net wrote:
> I have install qmail in new server , but i get one error from php
> mail()
>
> this is error i get
>
> Fatal error: Call to undefined function: mail() in
> /home/cuser/public_html/mail.php on line 2
>
> mail.php like this
> <?php
> mail("myemail@myemail.com", "My Subject", "Line 1\nLine 2\nLine
> 3");
> ?>
>
> I can't get fix yet.
>
> any one can help me ? i have setup a link to sendmail path , and
> recompile php , not work.
Have you installed the sendmail-wrappers such that you can call qmail as
/usr/sbin/sendmail? Also, the user that you compiled php as must be able
to use sendmail.
Hope this helps.
Chris