RE: [PHP-QA] Mail bug..
| From: | Liz | Date: | Tue, 04 Jun 2002 18:18:53 +0000 |
| Subject: | RE: [PHP-QA] Mail bug.. | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5480@lists.php.net to get a copy of this message | ||
I can make a 4.2.x machine and run the code, but it depends exactly what
you are trying for.,
> -----Original Message-----
> From: Melvyn Sopacua [mailto:msopacua@idg.nl]
> Sent: Tuesday, June 04, 2002 7:17 PM
> To: Markus Fischer
> Cc: php-qa@lists.php.net
> Subject: Re: [PHP-QA] Mail bug..
>
>
> At 20:16 6/4/2002 +0200, Markus Fischer wrote:
>
> > Does this work < 4.3 ?
>
> Verified on unix 4.2.1 release.
>
> Don't have a win32 4.2 machine around and about to head home, which
> will take 2 hours. Liz?
>
>
> >On Tue, Jun 04, 2002 at 08:10:24PM +0200, Melvyn Sopacua wrote :
> > > At 19:28 6/4/2002 +0200, Markus Fischer wrote:
> > >
> > > >> Anything specific you want tested?
> > > >
> > > > Uhm well, see the changes at
> > > >http://cvs.php.net/cvs.php/php4/win32/sendmail.c
> > >
> > > Think I got something - verified to be working on unix
> (ignore the NULL on
> > > subject - left over from a previous test):
> > > <pre>
> > > <?php
> > > ini_set('sendmail_from', '<>');
> > > $settings = array( ini_get('SMTP'), ini_get('smtp_port'),
> > > ini_get('sendmail_from'));
> > >
> > > print('Settings:');
> > > var_dump($settings);
> > > print( "\n\n");
> > > $mail = array(
> > > 'to' => 'webmaster@idg.nl',
> > > 'subject' => NULL,
> > > 'body' => 'This is a test',
> > > 'extra' => "From: MAILER-DAEMON <>",
> > > );
> > >
> > > var_dump($mail);
> > > $ok = mail($mail['to'], $mail['subject'],
> > > $mail['body'],
> $mail['extra']);
> > > if(!$ok)
> > > {
> > > print($php_errormsg);
> > > }
> > > else
> > > {
> > > print("\nOK\n");
> > > }
> > > ?>
> > > </pre>
> > >
> > > Settings:array(3) {
> > > [0]=>
> > > string(9) "localhost"
> > > [1]=>
> > > string(4) "8025"
> > > [2]=>
> > > string(2) "<>"
> > > }
> > >
> > >
> > > array(4) {
> > > ["to"]=>
> > > string(16) "webmaster@idg.nl"
> > > ["subject"]=>
> > > NULL
> > > ["body"]=>
> > > string(14) "This is a test"
> > > ["extra"]=>
> > > string(22) "From: MAILER-DAEMON <>"
> > > }
> > > mail() SMTP server response: 553 <<>>... @
> > >
> > >
> > >
> > > Met vriendelijke groeten / With kind regards,
> > >
> > > Webmaster IDG.nl
> > > Melvyn Sopacua
> >
> >--
> >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
>
> 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
>