Greetings,

I am just learning Linux system administration, so please bear with me :-)

I have a Red Hat Linux 6.1 box that has apache, php4 (module), bind, wu-ftpd, webmin, and the default telnet server installed. When selecting which packages to install, I elected NOT to install sendmail, since I was going to be using CommuniGate Pro.

I had everything compiled and installed from source (IE: no RPM's). The source of CommuniGate Pro was not available, so I installed an RPM. It appears that everything is working perfectly. I can send and receive mail through my windows-based email client, as well as the mail and sendmail programs.

The problem is that PHP won't sent mail using the mail() function. I set the path in the php.ini to /usr/sbin/sendmail, then tried /usr/sbin/sendmail -t (some people say to use that). Either way, it doesn't work.

There are no error messages, in fact, the mail function returns true, so it's working properly, it's just that nothing is being sent.

I have checked my CommuniGate Pro log files, and it's not registering any errors or that anything was sent, so it's like the mail just isn't getting there.

Now, when I manually access sendmail, it works fine, so why wouldn't PHP be able to send mail?

Any help would be greatly appreciated! Thanks in advance.

    Alright, I found someone to help me on this... The reason it wasn't working is because the default sendmail path (/usr/sbin/sendmail) wasn't right. While there WAS a sendmail program there, it wasn't the one that came with communigate, so it wasn't able to actually send mail out. So I found the sendmail program that came with communigate, and put the sendmail path to that:

    /usr/local/sbin/CommuniGate/sendmail

    .. just so you know...

      5 months later
      a year later

      Thanks for the info, but i still can't get php to send anything. Comminigate Pro seems to be working fine for everything else...I do get an Aapache error "...failed to open temp file /local/Communigate/TMP/53-984-0...; error code=2" I have my Communigate Pro the same path as you. Running PHP4.06/CGP 3.47/Mac OS X
      Thanks!

        3 years later

        I am having this exact problem. Anyone know a solution? Any Communigate experts out there that have used php with it?

        Neither the standard sendmail (/usr/sbin/sendmail) or Communigate's sendmail (/usr/local/sbin/CommuniGate/sendmail) will send out an email with the mail() function.

        John Ziebro

          Write a Reply...