[wellylug] mailx and Php
Phillip Hutchings
sitharus at sitharus.com
Tue Nov 7 10:49:48 NZDT 2006
They do the same thing, but they use different interfaces. PHP is
expecting the sendmail command line options to work and mail doesn't
use them to my knowledge.
You wrote: mail "email at address" -s "subject"
Sendmail would use:
echo "Subject: subject\r\nTo:email at address\r\n\r\nBody" > sendmail -t
So switch PHP to use what it expects to use and you should be fine.
On 11/7/06, E.Chalaron <e.chalaron at xtra.co.nz> wrote:
> I expected it to work,
> You wrote that "mail" was the wrong command and I had to use sendmail,
> but obviouly using "mail" works as well.
> I may not have your background maybe... ;-)
> E
>
>
> Phillip Hutchings wrote:
> > What do you expect to happen? You're sending an email to
> > moi at xtra.co.nz, so your mail server will send to xtra.co.nz.
>
>
> --
> Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>
--
Phillip Hutchings
http://www.sitharus.com/
More information about the wellylug
mailing list