|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-12-09 18:34 UTC] joey at cvs dot php dot net
[1999-12-15 14:58 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 21:00:01 2025 UTC |
----- 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 >