Bug #2940: Sendmail problem

From: Date: Thu, 09 Dec 1999 13:48:59 +0000
Subject: Bug #2940: Sendmail problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-13518@lists.php.net to get a copy of this message
From: nmmm@nmmm.nu Operating system: Linux PHP version: 3.0.12 PHP Bug Type: Other Bug description: Sendmail problem ----- Original Message ----- From: Nikolay Mijaylov <nmmm@nmmm.nu> To: Andi Gutmans <andi@php.net>; Zeev Suraski <bourbon@netvision.net.il>; Rasmus Lerdorf <rasmus@lerdorf.on.ca> Sent: 23 Íîåìâðè 1999 ã. 10:36 Subject: PHP Sendmail Feature - FIXED! > Hi all > yesterday I found a feature in PHP. It is sendmail-related. If u try to send > some like this: > > --------- > mail("to@somewhere", "a subject", "hello\n.\nsir\n"); > -------- > > the delivered mail will be only: > > ----- > from: from@host > to: to@somewhere > subject: a subject > > hello > ----- > > the <dot> reject all lines after it. > looking at sendmail man page, there are a flag "-i" this mean ignore all > <dots> and use only <EOF> > > The fixing is easy, if u know this. > > $ php -v > 3.0.12 > > file is "main.c" line is "993" > > C code is > --------------- > #ifdef PHP_PROG_SENDMAIL > /* THIS IS SENDMAIL FEATURE FIX. > * "Nikolay Mijaylov" <nmmm@nmmm.nu> > * Pasing "-i" reject all control <dots> into "sendmail -t" > */ > php3_ini.sendmail_path = PHP_PROG_SENDMAIL " -t -i"; > #else > php3_ini.sendmail_path = NULL; > #endif > --------------- > > > Greetings > Nikolay >

« previous php.dev (#13518) next »