php mail() function not working

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Oct 7 19:00:52 UTC 2003


On Tue, 7 Oct 2003, Kevin Cozens wrote:

> At 07:42 PM 10/07/2003 +0200, Peter wrote:
> >If there would be a way to make mail() send SMTP to localhost instead of
> >attempting to deliver it, then it would probably work with any setup, and
> >leave the mail routing to postfix, and the firewalling to the firewall
> >(you need not use only port 25 for incoming ...). That way these apps
> >should stop trampling on each other's permissions and everything should
> >keep working even if you upgrade something.
>
> The Perl scripts I have used on web pages that needed to send mail simply
> invoked the /bin/mail command to send mail. If you can do the same thing
> from PHP you will have a solution that will work regardless of the mail
> system used and you won't have to worry about permissions.

Yes but it is better to call sendmail under postfix instead. Works the
same (almost).

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list