Jump to content

[SOLVED] mail() returns false


ScotDiddle

Recommended Posts

Hi Folks,

 

I am trying to understand why my Linux system returns false at any attempt with the mail() function.

 

function_exists('mail'); returns true.

 

I am using Zend Core (PHP 5.2) for Oracle.

 

Any help will be appreciated.

 

Scot L. Diddle, Richmond VA

 

 

Link to comment
https://forums.phpfreaks.com/topic/122571-solved-mail-returns-false/
Share on other sites

discomatt,

 

I'm not sure... When I search for sendmail I get back circles...

 

541388    0 lrwxrwxrwx  1 root    root          21 Jan 11  2007 /usr/sbin/sendmail -> /etc/alternatives/mta

327691    0 lrwxrwxrwx  1 root    root          30 Jan 11  2007 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail

 

In alternatives I see:

 

 

/etc/alternatives ls -ltr *send*

lrwxrwxrwx    1 root    root          26 Jan 11  2007 mta-sendmail -> /usr/lib/sendmail.sendmail

 

My php.ini config file says sendmail lives in:

 

 

sendmail_path  = "/usr/sbin/sendmail -t -i"

 

When I enter sendmail from my ptty window, I get back:  "To address needed"

 

I am a mainframe programmer, and have very little experience with u/linux.

 

Scot

 

 

 

 

discomatt,

 

Failed... While I am waiting on my Linux gurus to allow me additional  sudo capabilities, I will read the link you sent.

 

 

~ sudo sendmail [email protected] < HiMom.txt

collect: Cannot write ./dfm83FuSLu012197 (bfcommit, uid=51, gid=51): Permission denied

queueup: cannot create queue file ./qfm83FuSLu012197, euid=51: Permission denied

~

 

Thanks,

 

Scot

Discomatt,

 

I thought about that as well... Where is the "Apache/PHP" user defined ?

 

ps -ef shows:

 

nobody  11599 11183  0 11:44 ?        00:00:00 /usr/local/Zend/apache2/bin/http

 

Thanks,

 

Scot

Discomatt,

 

    You 'da Man !!!.

 

    Everyone who has trouble with PHP mail returning "false" should read this thread, and follow your links.

 

    My mail() function now work !

 

Thank-you very much.

 

Scot L. Diddle, Richmonc VA

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.