1.机子上安装了AA Mail Server软件
2.php.ini上的配置[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25; For Win32 only.
sendmail_from = 127.0.0.1; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =3.test.php代码<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);
?> 运行结果:Warning: mail() [function.mail]: SMTP server response: 550 relay sending is rejected ( => [email protected]) in D:\phpnow\htdocs\test.php on line 9这个问题怎么解决?