Re: Mail bug..
| From: | Melvyn Sopacua | Date: | Tue, 04 Jun 2002 18:10:24 +0000 |
| Subject: | Re: Mail bug.. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-5472@lists.php.net to get a copy of this message | ||
At 19:28 6/4/2002 +0200, Markus Fischer wrote:
Anything specific you want tested?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(Uhm well, see the changes at http://cvs.php.net/cvs.php/php4/win32/sendmail.c
'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