Re: Mail bug..

From: Date: Tue, 04 Jun 2002 18:16:16 +0000
Subject: Re: Mail bug..
References: 1 2 3 4 5 6 7 8  Groups: php.qa 
Request: Send a blank email to php-qa+get-5474@lists.php.net to get a copy of this message
Does this work < 4.3 ? 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

« previous php.qa (#5474) next »