Bug #2146: popen in _php3_mail() function doesn't call sendmail correctly when sendmails
| From: | mschube at earthlink dot net | Date: | Wed, 25 Aug 1999 14:27:00 +0000 |
| Subject: | Bug #2146: popen in _php3_mail() function doesn't call sendmail correctly when sendmails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10174@lists.php.net to get a copy of this message | ||
From: mschube@earthlink.net
Operating system: Caldera Openlinux 2.2
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: popen in _php3_mail() function doesn't call sendmail correctly when sendmails
The popen() function just calls php3_ini.sendmail_path when
sending email under Linux ... neewer sendmails require that
the recipient names be specified on the command line as
well as being in the To: line ... under my system, calls
to mail were failing ...when I checked the log, I saw that
the nrcpts value for sendmail was 0 even though I was
passing a valid recipient name. The sendmail in my
php3.ini is
sendmail_path = '/usr/sbin/sendmail';
I am not a great C programmer, so I won't send in the
code I used at home to fix this problem cause I am sure
it is not the most efficient / pretty code ;).