#8734 [Dup->Csd]: Unable to send large emails, causes a GPF - small email work fine.

From: Date: Sat, 24 Aug 2002 01:25:06 +0000
Subject: #8734 [Dup->Csd]: Unable to send large emails, causes a GPF - small email work fine.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17715@lists.php.net to get a copy of this message
ID: 8734 Updated by: sniper@php.net Reported By: wayne.cope@sitel.co.uk -Status: Duplicate +Status: Closed Bug Type: Mail related Operating System: Windows NT 4 PHP Version: 4.0.4pl1 Assigned To: hholzgra New Comment: There were some fixes in this code..please try this snapshot: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-04-11 05:49:45] wayne.cope@sitel.co.uk No, this has not been changed in 4.1.2. I have downloaded the source code for release 4.1.2 and the buffer used for sending mail is still hardcoded to 4K, and so still causes a GPF when trying to send an email larger than 4K (a buffer very easily broken by sending attachments for example). Wayne ------------------------------------------------------------------------ [2002-04-10 19:10:46] dkrout@u.washington.edu Was this bug fixed in 4.1.2? -David ------------------------------------------------------------------------ [2001-06-22 18:33:07] hholzgra@php.net see #11165 ------------------------------------------------------------------------ [2001-01-30 05:03:00] sniper@php.net reclassify ------------------------------------------------------------------------ [2001-01-16 11:47:11] wayne.cope@sitel.co.uk I have been able to make the change and recompile the code to use a 1Mb buffer, instead of a 4K buffer and the mail() function works fine now. You need to change the line #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ to #define MAIL_BUFFER_SIZE (1024*1024) /* 1Mb buffer */ in file "sendmail.h" to make this function work. Ideally, the buffer size should be calculated dynamically, but that'll take a bit longer of course ! Can someone try and pop this change into the next release please. TTFN ! Wayne Cope ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/8734 -- Edit this bug report at http://bugs.php.net/?id=8734&edit=1

« previous php.bugs (#17715) next »