RE: [PHP-QA] Mail bug..
| From: | Liz | Date: | Tue, 04 Jun 2002 16:01:20 +0000 |
| Subject: | RE: [PHP-QA] Mail bug.. | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5460@lists.php.net to get a copy of this message | ||
I've also seen the same odd mailbug when using 4.2.x under unix also.
However, Markus has kindly pointed out that that's entirely different.
:((
> -----Original Message-----
> From: Melvyn Sopacua [mailto:msopacua@idg.nl]
> Sent: Tuesday, June 04, 2002 4:59 PM
> To: Markus Fischer
> Cc: php-qa@lists.php.net
> Subject: Re: [PHP-QA] Mail bug..
>
>
> At 10:00 6/4/2002 +0200, Markus Fischer wrote:
>
> > Hi,
> >
> > Just for everyone now (further conversion went on privately):
> > I fixed a couple of further issues with win32/mail, testers
> > are welcome, the changes should be in
> > http://snaps.php.net/win32/php4-win32-latest.zip by
> > now.
>
> Using that snapshot, where the datestamp on the dlls, is 200206041222
> The To: issue is fixed.
> CC is broken though - when using newline, instead of \r\n, as in bug:
> http://bugs.php.net/bug.php?id=5484
>
> Test script:
> <pre>
> <?php
> $settings = array( ini_get('SMTP'), ini_get('smtp_port'));
>
> print('Settings:');
> var_dump($settings);
> print( "\n\n");
> $mail = array(
> 'to' => 'mdev@idg.nl',
> 'subject' => 'Test w32 mail',
> 'body' => 'This is a test',
> 'extra' => "Date: " . date('r') . "\nCc: Melvyn
> Sopacua
> <melvyn@idg.nl>\nX-QA-Test: funky\n"
> );
>
> ob_start();
> var_dump($mail);
> $maildump = ob_get_contents();
> ob_end_clean();
> print(htmlspecialchars($maildump));
> $ok = mail($mail['to'], $mail['subject'], $mail['body'],
> $mail['extra']);
> if(!$ok)
> {
> print($php_errormsg);
> }
> else
> {
> print("\nOK\n");
> }
> print( "\n\n");
> $mail = array(
> 'to' => 'mdev@idg.nl',
> 'subject' => 'Test w32 mail',
> 'body' => 'This is a test',
> 'extra' => "Date: " . date('r') . "\r\nCc:
> Melvyn Sopacua
> <melvyn@idg.nl>\r\nX-QA-Test: funky\r\n"
> );
>
> ob_start();
> var_dump($mail);
> $maildump = ob_get_contents();
> ob_end_clean();
> print(htmlspecialchars($maildump));
> $ok = mail($mail['to'], $mail['subject'], $mail['body'],
> $mail['extra']);
> if(!$ok)
> {
> print($php_errormsg);
> }
> else
> {
> print("\nOK\n");
> }
> ?>
> </pre>
>
>
>
> Output:
> Settings:array(2) {
> [0]=>
> string(9) "localhost"
> [1]=>
> string(4) "8025"
> }
>
>
> array(4) {
> ["to"]=>
> string(11) "mdev@idg.nl"
> ["subject"]=>
> string(13) "Test w32 mail"
> ["body"]=>
> string(14) "This is a test"
> ["extra"]=>
> string(90) "Date: Tue, 4 Jun 2002 17:54:31 +0200
> Cc: Melvyn Sopacua <melvyn@idg.nl>
> X-QA-Test: funky
> "
> }
> mail() SMTP server response: 553 < Melvyn Sopacua ... Unbalanced '<'
>
> array(4) {
> ["to"]=>
> string(11) "mdev@idg.nl"
> ["subject"]=>
> string(13) "Test w32 mail"
> ["body"]=>
> string(14) "This is a test"
> ["extra"]=>
> string(93) "Date: Tue, 4 Jun 2002 17:54:31 +0200
> Cc: Melvyn Sopacua <melvyn@idg.nl>
> X-QA-Test: funky
> "
> }
>
> OK
>
>
>
> > - Markus
> >
> >On Sun, Jun 02, 2002 at 01:52:04PM +0100, Liz wrote :
> > > Guys,
> > >
> > > I posted on the bugs thing a problem I have found with 4.2 mail
> > > function.. Bug #17541. Where, to summarise if you did
> > >
> > > mail ("me@myhost.com","test","test","To: MyName
> > > <me@myhost.com>")
> > >
> > > which would normally result in a nice test mail with the
> To: address
> > > showing as the last part, actually comes back as
> me@myhost.com;MyName
> > > <me@myhost.com> - ie, duplicating the extras part.
> > >
> > > I've had to roll back to 4.1.2 (where it last worked
> fine) as the system
> > > Ive been writing is going company wide and I want to show
> them that PHP
> > > rocks, not that it has a silly bug in it.. It could of
> course, also have
> > > other implications. Depending on exactly why its working that way.
> > >
> > > Liz
> >
> >--
> >GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> >Did I help you? http://guru.josefine.at/wish_en
> >Konnte ich helfen? http://guru.josefine.at/wish_de
> >
> >--
> >PHP Quality Assurance Mailing List
> ><http://www.php.net/>
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
> Met vriendelijke groeten / With kind regards,
>
> Webmaster IDG.nl
> Melvyn Sopacua
>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>