Re: Mail bug..
| From: | Melvyn Sopacua | Date: | Tue, 04 Jun 2002 18:16:31 +0000 |
| Subject: | Re: Mail bug.. | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5476@lists.php.net to get a copy of this message | ||
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:Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn SopacuaThink 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(Uhm well, see the changes at http://cvs.php.net/cvs.php/php4/win32/sendmail.cAnything specific you want tested?'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.ascDid I help you? http://guru.josefine.at/wish_enKonnte ich helfen? http://guru.josefine.at/wish_de