[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Email & PHP



> I just installed PHP3 on my Raq3.  info() is telling me that Sendmail is
> Path to sendmail: /usr/lib/sendmail -t
>
> I wrote a little script:
> <?
> mail("minid@xxxxxxxxx", "hello", "test");
> ?>
>
> It doesn't seem to want to work.  Is there something I am missing as far as
> email is concerned?  Do I need to set something up for mail to work?

mail should work straight outta the box if PHP works, unless you compiled it in some weird
way. I installed using the RPMs for my production box and it works with the same path to
sendmail. Here's an example of working mail code:

mail("joe@xxxxxxxxxxxxx", "Invoice Notification from JoltinJoe.Com", "$content", "From:
billing@xxxxxxxxxxxxx\n");

(It should all be on 1 line, of course...)

2 quick questions for you. Is PHP parsing the script? Did you modify the php3.ini file to
accept the PHP tags (<? instead of <?php)? Just a couple of stabs in the dark.

Joe