이상한 문제가 발생했습니다. 어제 (또는 그렇게) 이후 PHP 메일러는 SMTP 서버에 연결을 거부합니다. 이것은 이전에 잘 작동했습니다. 암호 또는 다른 어떤이 변경된 경우 내가 확인하지만, 모든 정확해야, 그러나 나는 이러한 오류 받고 있어요 :phpMailer smtp의 작동이 중지되었습니다.
2016-09-05 10:06:43 SMTP ERROR: Failed to connect to server: Connection timed out (110) 2016-09-05 10:06:43 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mailer Fehler: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Warning: Error while sending STMT_CLOSE packet. PID=25524 in Unknown on line 0
설치 코드입니다 : 무엇을 할 수
$mail->IsSMTP();
//$mail->SMTPDebug = 1;
$mail->SMTPAuth = true;
$mail->Host = "smtp.office365.com";
$mail->Port = 587;
$mail->SMTPSecure = "tls";
$mail->Username = "theCorrectUsername";
$mail->Password = "theCorrectPassword";
어떤 생각 원인이 되겠습니까?
리틀 업데이트 :
이 ... 이것은 PHP 파일이있는 서버의 방화벽 문제가 될 수있는 SMTP 서버에 연결할 수 없습니다 phpmailer 것 같아?
또 다른 갱신 :
-> SMTPDebug = 2; 나를 준다 :
2016-09-05 17:11:31 Connection: opening to smtp.office365.com:587, timeout=30, options=array () 2016-09-05 17:12:01 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to smtp.office365.com:587 (Connection timed out) 2016-09-05 17:12:01 SMTP ERROR: Failed to connect to server: Connection timed out (110)
포트 번호를 확인,이 Google 검색은'587'을 제안 number' 포트가 정확하지 office365.com SMTP, 어쩌면 그들이 뭔가 내가 그것을 확인 – RiggsFolly
을 변경'에 대한 올바른 포트해야한다 smtp – user2839873
오류 메시지에서 링크 된 문제 해결 설명서를 읽으십시오. 테스트가 DNS인지, 방화벽 블록인지 등을 확인하십시오. – Synchro