Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


LinkBack Search this Thread
Old 11-02-2006, 08:01 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 15

Rep: Reputation: 0
Mail problem with php apache


I am using Redhat , apache , php ,postfix

my problem

when i make a php script which mails a mail and run on browser then it doesnt send mail. it is removed form the queue

but if i run the same script from command line of unix terminal


php testmail.php

it works fine

the mail comes

can anyone please tell what can be the probable problem.

thanks in advance
Old 11-02-2006, 09:27 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,775

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Most probably the user under which runs apache cannot write to the spool directory. Take a look at apache error log to see if you can find anything useful.


mail, postfix

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
php mail() funtion in chrooted Apache clau_bolson Linux - Software 0 12-06-2005 10:02 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
send mail via PHP from website on apache. not working mdkelly069 Linux - Software 0 02-25-2004 12:15 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM
php mail() problem sashhoney Linux - Software 3 09-30-2003 05:06 AM

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration