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
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

 

 

 

 

Link to comment
Share on other sites

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 scotDiddle@MyCompany.com < 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.