0
發送電子郵件,我嘗試使用發送電子郵件以下PHP code.But我得到以下錯誤:需要身份驗證錯誤,而使用PHP
警告:電子郵件():SMTP服務器響應:530-5.5.1需要身份驗證。瞭解更多信息至530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257
<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
http://stackoverflow.com/questions/11477902/mail-php-smtp-authentication-issue的可能重複 – 2013-04-20 07:25:11