我試圖在我的本地計算機上使用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