php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2705 win32 mail function is'nt able to send email > 4 KByte
Submitted: 1999-11-12 04:33 UTC Modified: 2000-11-21 04:00 UTC
From: nestor at micro-assist dot fr Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (12/11/1999) OS: nt4, all win9x
Private report: No CVE-ID: None
 [1999-11-12 04:33 UTC] nestor at micro-assist dot fr
win32 mail function is'nt able to send email > 4 KByte
In sendmail.c (Win32 specific code) a buffer limit mail size to 4 Kb so
it's impossible to send mail with attachments (like a little .doc > 4Kb)
The only things to do is to increase buffer (tested) but it's not a pretty solution.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-12 09:49 UTC] joey at cvs dot php dot net
I don't believe this should be marked as "Misbehaving Function". ??
Maybe "Feature Request", or "Documentation Problem"? Leaving for
now, wait for feedback from reporter or core team.
 [1999-11-12 10:32 UTC] nestor at micro-assist dot fr
win32/senmail.h
#define  MAIL_BUFFER_SIZE               (1024*4)        // 4k buffer$
All work if total mail size is under MAIL_BUFFER_SIZE
you have to increase MAIL_BUFFER_SIZE to send greater size mail !!!???

 Windows only !
 [1999-11-12 10:39 UTC] joey at cvs dot php dot net
Marking as a DUP and a feature request.
See
http://bugs.php.net/bugs.php3?id=2708
 [1999-11-19 11:51 UTC] nestor at micro-assist dot fr
Moving the buffer size to php.ini (thanks joey) seems to be the good solution
There is an other problem: If you exceed the buffer size php crash !? It's not very smart if you have no control over the mail size (add an error message).
Thanks to all.
////////////////////////////////////////////////////////////////////////////////////////////////////////////
ID: 2705
User Update by: nestor@micro-assist.fr
Status: Open
Bug Type: Misbehaving function
Description: win32 mail function is'nt able to send email > 4 KByte

win32/senmail.h

#define  MAIL_BUFFER_SIZE               (1024*4)        // 4k buffer$

All work if total mail size is under MAIL_BUFFER_SIZE

you have to increase MAIL_BUFFER_SIZE to send greater size mail !!!???



 Windows only !

Full Bug description available at: http://bugs.php.net/?id=2705

ID: 2708
Updated by: joey
Reported By: nestor@micro-assist.fr
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

Moving this to a "Feature Request". It seems to me that MAIL_BUFFER_SIZE is a good

candidate for an .ini switch...is that doable, or does it have to be compiled in?

Full Bug description available at: http://bugs.php.net/?id=2708
 [2000-07-31 21:58 UTC] waldschrott@php.net
Is this problem still recent?
 [2000-11-21 04:00 UTC] sniper@php.net
no feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 23:01:27 2024 UTC