디버깅이 때때로 바쁠 수 있습니다 ... mail
기능을 어떻게 처리합니까? 내가 몇 가지 설정을 변경해야 할 것 같다 그러나 나는 내가 그들을 처리 할 수있는 방법에 대한 아이디어를하지 않은 :PHP의 메일 기능
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\mysite\forum part two\post_reply_parse.php on line 72
라인 (72)에 내 코드는 이것이다 :이 오류가 진열되어 내 포럼에 대한 답변을 게시 할 때
mail($to, $subject, $message, $headers);
내 메일 코드는 내가이 오류를 무시하고 싶지 않은이
$email = '';
$email = substr($email, 0, (strlen($email) - 2));
address with your domain at the end
$to = "";
$from = "";
// $bcc is the list of emails that will be sent out as blind carbon copies
$bcc = $email;
$subject = "YOUR_SUBJECT_HERE";
$message = "YOU MESSAGE CONTENT HERE";
$headers = "From: $from\r\nReply-To: $from";
$headers .= "\r\nBcc: {$bcc}";
// Send out the email
mail($to, $subject, $message, $headers);
처럼 나는 내가 그것을 고칠 수있는 방법에 대한 자세한 내용 싶어요.
'실패 연결하는' "로컬 호스트"에서 메일 서버에 - 거기 localhost에서 실행중인 SMTP 서버? – David
아니요, 구성 방법에 대한 자습서를 확인하겠습니다. – theuserkaps