我试图在我的本地计算机上使用PHP邮件,但它只是不工作。我使用从PHP网站的标准脚本:不能发送邮件使用PHP邮件功能
PHP错误我得到
SMTP server response: 550 Error sending message: Error: FROM address is invalid
实际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);
我下载了一个本地邮件服务器,argosoft。它表示服务URL是http://services.argosoft.com/RelayService/Service.asmx。我认为这是我在php.ini中。
php ini。
For Win32 only.
SMTP = services.argosoft.com/RelayService/Service.asmx
smtp_port = 25
我有什么似乎是同一个问题:http://stackoverflow.com/questions/1429317/strange-behavior -in-php-mail-function-address-does-exist – cwallenpoole 2011-06-02 03:56:11