2017-12-08 11 views
0

WP 메일 SMTP (0.11.2) 플러그인을 사용하고 있습니다.Wordpress4.9.1 SMTP가 작동하지 않습니다.

usingWordpress4.9.1 전자 메일을 보내면이 오류가 발생합니다. SMTP -> 오류 : 서버에 연결하지 못했거나 인증 할 수 없습니다.

어떻게 해결할 수 있습니까?

C : \ wamp64 \ www가 \ 워드 프레스 \ WP-내용 \ 플러그인 \ WP-메일 SMTP \의 wp_mail_smtp.php : 258 : 부울 거짓 여기

내 testmail가 debuging되는 정보 :

PHPMailer Object 
(
[Version] => 5.2.22 
[Priority] => 
[CharSet] => UTF-8 
[ContentType] => text/plain 
[Encoding] => 8bit 
[ErrorInfo] => SMTP connect() failed. 
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 
[From] => [email protected] 
[FromName] => 搖滾俱樂部 
[Sender] => 
[ReturnPath] => 
[Subject] => WP Mail SMTP: Test mail to [email protected] 
[Body] => 這封測試郵件由 WordPress 外掛 WP Mail SMTP 自動產生。 
[AltBody] => 
[Ical] => 
[MIMEBody:protected] => 這封測試郵件由 WordPress 外掛 WP Mail SMTP 自動產生。 

[MIMEHeader:protected] => Date: Fri, 8 Dec 2017 14:51:09 +0000 
To: [email protected] 
From: =?UTF-8?B?5pCW5ru+5L+x5qiC6YOo?= 
Subject: WP Mail SMTP: Test mail to [email protected] 
Message-ID: <1d6e4[email protected]> 
X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer) 
MIME-Version: 1.0 
Content-Type: text/plain; charset=UTF-8 
Content-Transfer-Encoding: 8bit 


[mailHeader:protected] => 
[WordWrap] => 0 
[Mailer] => smtp 
[Sendmail] => /usr/sbin/sendmail 
[UseSendmailOptions] => 1 
[PluginDir] => 
[ConfirmReadingTo] => 
[Hostname] => 
[MessageID] => 
[MessageDate] => Fri, 8 Dec 2017 14:51:09 +0000 
[Host] => smtp.gmail.com 
[Port] => 465 
[Helo] => 
[SMTPSecure] => ssl 
[SMTPAutoTLS] => 1 
[SMTPAuth] => 1 
[SMTPOptions] => Array 
    (
    ) 

[Username] => [email protected] 
[Password] => xxxxxxxxxxxx 
[AuthType] => 
[Realm] => 
[Workstation] => 
[Timeout] => 300 
[SMTPDebug] => 0 
[Debugoutput] => echo 
[SMTPKeepAlive] => 
[SingleTo] => 
[SingleToArray] => Array 
    (
    ) 

[do_verp] => 
[AllowEmpty] => 
[LE] => 

[DKIM_selector] => 
[DKIM_identity] => 
[DKIM_passphrase] => 
[DKIM_domain] => 
[DKIM_private] => 
[DKIM_private_string] => 
[action_function] => 
[XMailer] => 
[smtp:protected] => SMTP Object 
    (
     [Version] => 5.2.22 
     [SMTP_PORT] => 25 
     [CRLF] => 

     [do_debug] => 0 
     [Debugoutput] => echo 
     [do_verp] => 
     [Timeout] => 300 
     [Timelimit] => 300 
     [smtp_transaction_id_patterns:protected] => Array 
      (
       [exim] => /[0-9]{3} OK id=(.*)/ 
       [sendmail] => /[0-9]{3} 2.0.0 (.*) Message/ 
       [postfix] => /[0-9]{3} 2.0.0 Ok: queued as (.*)/ 
      ) 

     [smtp_conn:protected] => 
     [error:protected] => Array 
      (
       [error] => 
       [detail] => 
       [smtp_code] => 
       [smtp_code_ex] => 
      ) 

     [helo_rply:protected] => 
     [server_caps:protected] => 
     [last_reply:protected] => 
    ) 

[to:protected] => Array 
    (
     [0] => Array 
      (
       [0] => [email protected] 
       [1] => 
      ) 

    ) 

[cc:protected] => Array 
    (
    ) 

[bcc:protected] => Array 
    (
    ) 

[ReplyTo:protected] => Array 
    (
    ) 

[all_recipients:protected] => Array 
    (
     [[email protected]] => 1 
    ) 

[RecipientsQueue:protected] => Array 
    (
    ) 

[ReplyToQueue:protected] => Array 
    (
    ) 

[attachment:protected] => Array 
    (
    ) 

[CustomHeader:protected] => Array 
    (
    ) 

[lastMessageID:protected] => <[email protected]> 
[message_type:protected] => plain 
[boundary:protected] => Array 
    (
     [1] => b1_1d6e4a91953547c850de852e798ccbba 
     [2] => b2_1d6e4a91953547c850de852e798ccbba 
     [3] => b3_1d6e4a91953547c850de852e798ccbba 
    ) 

[language:protected] => Array 
    (
     [authenticate] => SMTP Error: Could not authenticate. 
     [connect_host] => SMTP Error: Could not connect to SMTP host. 
     [data_not_accepted] => SMTP Error: data not accepted. 
     [empty_message] => Message body empty 
     [encoding] => Unknown encoding: 
     [execute] => Could not execute: 
     [file_access] => Could not access file: 
     [file_open] => File Error: Could not open file: 
     [from_failed] => The following From address failed: 
     [instantiate] => Could not instantiate mail function. 
     [invalid_address] => Invalid address: 
     [mailer_not_supported] => mailer is not supported. 
     [provide_address] => You must provide at least one recipient email address. 
     [recipients_failed] => SMTP Error: The following recipients failed: 
     [signing] => Signing Error: 
     [smtp_connect_failed] => SMTP connect() failed. 
     [smtp_error] => SMTP server error: 
     [variable_set] => Cannot set or reset variable: 
     [extension_missing] => Extension missing: 
    ) 

[error_count:protected] => 2 
[sign_cert_file:protected] => 
[sign_key_file:protected] => 
[sign_extracerts_file:protected] => 
[sign_key_pass:protected] => 
[exceptions:protected] => 1 
[uniqueid:protected] => 1d6e4a91953547c850de852e798ccbba 

)

표제어

+0

이 문제 해결 가이드의 권장 사항을 통해 이동합니다. 포스트 번째 전자 디버그 출력은'SMTPDebug = 3'으로 얻는다. – Synchro

+0

그 뜻은'SMTPDebug = 3'입니까? 나쁜 영어와 기술에 대해 유감스럽게 생각합니다. – Ray55660010

+0

코드 예제를 사용하는 방법을보십시오. – Synchro

답변

0

연결 : //smtp.gmail.com : SSL에 개구 (465), 제한 시간 = 300 옵션 = 배열 ​​( )

연결 : 서버에 연결하지 못했습니다.

오류 번호 2 "오류주의 사항 : stream_socket_client() : SSL 작업이 코드 1. OpenSSL이 오류 메시지와 함께 실패 오류 : 14090086 : SSL 루틴 : ssl3_get_server_certificate : 인증서 확인 failedConnection :. 서버에 연결하지 못했습니다을

오류 번호 2 "오류 고지 : stream_socket_client() : cryptoConnection을 활성화하지 못했습니다 : 서버에 연결하지 못했습니다.

오류 번호 2 "오류주의 사항 : stream_socket_client() : SSL에 연결할 수 없습니다 : //smtp.gmail.com : 465 (알 수없는 오류)

SMTP 오류 : 서버에 연결하지 못했습니다 : (0) SMTP 연결은()에 실패했습니다.