RE: FW: [PHP-WIN] mime in php

From: Date: Tue, 20 Mar 2001 22:19:57 +0000
Subject: RE: FW: [PHP-WIN] mime in php
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6176@lists.php.net to get a copy of this message
Yes, I am using a windows port of sendmail. And I am using my college's mailserver to send out the messages. I think the problem may be the execution path I'm using....do you need to put cmd.exe in it or something? Thanks. Patrick O'Shea On Tue, 20 Mar 2001, Free Beachler wrote: > Brad, > You're totally correct. This is the problem, aka BUG ID 8734. Note > however, that the #define constant you mentioned is only used in the PHP > code for CGI (or ISAPI, i forget which). Therefore, ISAPI under NT > shouldn't have this problem. Furthermore, as one reader mentioned, UNIX > sendmail doesn't experience this problem. > > Bottom line on NT using CGI: if the header mail() sends is > 4K then the > header will be incomplete which causes mixed results on NT. An incomplete > header can crash Exchange, and times-out IIS SMTP. In fact, the workings > are a little more intricate. > > According to the BUG ID, this may be fixed in an upcoming release soon, > though I'm not sure exactly where the bug fix stands. > > Workarounds (some are NO FUN!): > 0) try ISAPI if you're running CGI > 1) use a SENDMAIL program that's been ported for windows. > 2) use a CGI script based off of sendmail and POST to it... > 3) fix the #define MAIL_BUFFER_SIZE (1024*4) /* 4k > buffer */ > in the sendmail.c file to something more acceptable for the size of headers > you may be sending. Then recompile! Or, if you're really slick, code a > dynamic buffer and submit the bug fix to php.net! > 4) port application to PHP on UNIX (yeah, good luck!) > 5) wait for 4.0.5 and hope it's fixed > > > -----Original Message----- > From: Brad S. Jackson [mailto:bjackson@McLeodUSA.com] > Sent: Tuesday, March 20, 2001 9:07 AM > To: Free Beachler > Subject: Re: FW: [PHP-WIN] mime in php > > > > > Perhaps this is why? > > #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ > > > http://cvs.php.net/viewcvs.cgi/php4/win32/sendmail.h?rev=1.2&content-type=teoѧÎK¾* > I Û«xµ > xt/vnd.viewcvs-markup > > > FW: [PHP-WIN] mime in php > "Free Beachler" <bfree1@uswest.net> wrote: > somebody please help!!! I've posted a number of messages about this with no > reply. Here are the findings from my research: > > on windows 2000 under iis 5.0 this is breaking: > mail($to, '', '', substr($coverletter, 0, 3990)); > > while this works: > mail($to, $subject, '', substr($coverletter, 0, 3989)); > > where $coverletter is a message header. I intend this message header to be > a mime multipart message. but, for testing purposes, i've tried just any > old string in the header. It seems that the mail() function breaks if the > length of the header parameter passed to it is too long !!! > > can someone try this on apache or a unix environment to see if the above > line that breaks for me also breaks for you. BEWARE:::if $coverletter > contains email addresses those persons might also get the mail. MAKE SURE > $coverletter HAS NO EMAIL ADDRESSES! > > -f > > -free > > > -----Original Message----- > From: Free Beachler [mailto:bfree1@uswest.net] > Sent: Monday, March 19, 2001 6:01 PM > To: Php-Windows > Subject: [PHP-WIN] mime in php > > > Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)? I > can't figure out if my mail() send is breaking because of message length or > mime format or what. I think my mail conforms to specification. > > -free > bfree1@uswest.net > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6176) next »