LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

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

Rep: Reputation: 0
Mail problem with php apache


Hello,

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

i.e

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
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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.
 
  


Reply

Tags
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


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 11:58 AM.

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