php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29269 when Apache in SSL, Warning: mail(): Could not execute mail delivery program
Submitted: 2004-07-20 00:55 UTC Modified: 2004-07-24 14:38 UTC
From: rstubbe at sit dot nl Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.8 OS: Solaris 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 25 = ?
Subscribe to this entry?

 
 [2004-07-20 00:55 UTC] rstubbe at sit dot nl
Description:
------------
When the Apache server is started with SSL support when calling the mail() function the following error occures:

Warning: mail(): Could not execute mail delivery program '/usr/lib/sendmail -t -i ' in /export/home/digiprin/digiprints.nl/index.php on line 1266

NOTE: the problem does not occure when the apache server is started without SSL support

Sendmail is the latest version 8.12.11
Apache is the latest version 2.0.50

Reproduce code:
---------------
   mail($email, "Uw bestelling",$message,$header);



Expected result:
----------------
email to be send

Actual result:
--------------
Warning: mail(): Could not execute mail delivery program '/usr/lib/sendmail -t -i ' in /export/home/digiprin/digiprints.nl/index.php on line 1266


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-20 02:42 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The error explains that the sendmail binary needed to send 
the e-mail via PHP is either not present or not executable. 
Fix that problem and PHP will be able to send e-mail. 
 [2004-07-20 09:11 UTC] rstubbe at sit dot nl
Please note: the sensmail binary is in the correct location, as otherwise the problem should also exist when the apache server is started in non SSL mode, but then it works.
 [2004-07-20 20:34 UTC] rstubbe at sit dot nl
Actually is is relate to apache.  After some debugging it seems that apache is not able to open more streams, with the error "could not execute" as a result.
 [2004-07-24 14:38 UTC] magnus@php.net
Not a bug. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 21:01:33 2024 UTC