質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

Q&A

解決済

3回答

10225閲覧

wordpressのプラグイン、WP Mail SMTPでエラーが出てしまいます。

hiro421

総合スコア63

WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

0グッド

0クリップ

投稿2016/06/07 09:27

Wordpressのプラグイン、WP Mail SMTPを使用しているのですが、
以下のようなエラーが出てしまいます。
こちらどのようなエラーでどこを直せばいいのかなどが、もしわかればヒントでも構いませんのでご教示いただけますと大変助かります。
(メールアドレス、パスワードなどはxxxにさせていただいてます。)
その他、設定情報など必要な情報等ございましたらご教示ください。

===========================
テストメッセージを送信しました。
結果:
bool(false)
フルデバッグの結果:
object(PHPMailer)#4906 (69) {
["Version"]=>
string(5) "5.2.7"
["Priority"]=>
int(3)
["CharSet"]=>
string(11) "ISO-2022-JP"
["ContentType"]=>
string(10) "text/plain"
["Encoding"]=>
string(4) "7bit"
["ErrorInfo"]=>
string(22) "SMTP connect() failed."
["From"]=>
string(21) "xxxxxx@xxxxxx.com"
["FromName"]=>
string(58) "=?ISO-2022-JP?B?TmV3cyBGcm9tIE1hbmVnZW1lbnQbJEIkaCRqGyhC?="
["Sender"]=>
string(0) ""
["ReturnPath"]=>
string(0) ""
["Subject"]=>
string(102) "=?ISO-2022-JP?B?V1AgTWFpbCBTTVRQOiAbJEIlRiU5JUglYSE8JWskTkF3Py5AaBsoQm1leWFzdWJha29AZ2xwcm9wLmNvbQ==?="
["Body"]=>
string(88) "$B$3$l$O(B WP Mail SMTP WordPress $B%W%i%0%$%s$K$h$C$F@8@.$5$l$?%F%9%H%a!<%k$G$9!#(B"
["AltBody"]=>
string(0) ""
["Ical"]=>
string(0) ""
["MIMEBody":protected]=>
string(89) "$B$3$l$O(B WP Mail SMTP WordPress $B%W%i%0%$%s$K$h$C$F@8@.$5$l$?%F%9%H%a!<%k$G$9!#(B
"
["MIMEHeader":protected]=>
string(508) "Date: Tue, 7 Jun 2016 09:18:18 +0000
Return-Path:
To: xxxxxx@xxxxxx.com
From: =?ISO-2022-JP?B?TmV3cyBGcm9tIE1hbmVnZW1lbnQbJEIkaCRqGyhC?=
Subject: =?ISO-2022-JP?B?V1AgTWFpbCBTTVRQOiAbJEIlRiU5JUglYSE8JWskTkF3Py5AaBsoQm1leWFzdWJha29AZ2xwcm9wLmNvbQ==?=
Message-ID: 5abf32b74e6b6eff57d80b85c893036a@172.19.63.60
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP

"
["mailHeader":protected]=>
string(0) ""
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) "smtp"
["Sendmail"]=>
string(18) "/usr/sbin/sendmail"
["UseSendmailOptions"]=>
bool(true)
["PluginDir"]=>
string(0) ""
["ConfirmReadingTo"]=>
string(0) ""
["Hostname"]=>
string(0) ""
["MessageID"]=>
string(0) ""
["MessageDate"]=>
string(0) ""
["Host"]=>
string(17) "xxxxxx.xxxxxx.com"
["Port"]=>
string(2) "25"
["Helo"]=>
string(0) ""
["SMTPSecure"]=>
string(3) "tls"
["SMTPAuth"]=>
bool(true)
["Username"]=>
string(21) "xxxx@xxxx.com"
["Password"]=>
string(8) "xxxxx"
["AuthType"]=>
string(0) ""
["Realm"]=>
string(0) ""
["Workstation"]=>
string(0) ""
["Timeout"]=>
int(10)
["SMTPDebug"]=>
bool(true)
["Debugoutput"]=>
string(4) "echo"
["SMTPKeepAlive"]=>
bool(false)
["SingleTo"]=>
bool(false)
["SingleToArray"]=>
array(0) {
}
["do_verp"]=>
bool(false)
["AllowEmpty"]=>
bool(false)
["LE"]=>
string(1) "
"
["DKIM_selector"]=>
string(0) ""
["DKIM_identity"]=>
string(0) ""
["DKIM_passphrase"]=>
string(0) ""
["DKIM_domain"]=>
string(0) ""
["DKIM_private"]=>
string(0) ""
["action_function"]=>
string(0) ""
["XMailer"]=>
string(0) ""
["smtp":protected]=>
object(SMTP)#4965 (12) {
["Version"]=>
string(5) "5.2.7"
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) "
"
["do_debug"]=>
bool(true)
["Debugoutput"]=>
string(4) "echo"
["do_verp"]=>
bool(false)
["Timeout"]=>
int(10)
["Timelimit"]=>
int(30)
["smtp_conn":protected]=>
bool(false)
["error":protected]=>
NULL
["helo_rply":protected]=>
NULL
["last_reply":protected]=>
string(0) ""
}
["to":protected]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(21) "xxxx@xxxx.com"
[1]=>
string(0) ""
}
}
["cc":protected]=>
array(0) {
}
["bcc":protected]=>
array(0) {
}
["ReplyTo":protected]=>
array(0) {
}
["all_recipients":protected]=>
array(1) {
["xxxx@xxxx.com"]=>
bool(true)
}
["attachment":protected]=>
array(0) {
}
["CustomHeader":protected]=>
array(0) {
}
["lastMessageID":protected]=>
string(47) "5abf32b74e6b6eff57d80b85c893036a@172.19.63.60"
["message_type":protected]=>
string(5) "plain"
["boundary":protected]=>
array(3) {
[1]=>
string(35) "b1_5abf32b74e6b6eff57d80b85c893036a"
[2]=>
string(35) "b2_5abf32b74e6b6eff57d80b85c893036a"
[3]=>
string(35) "b3_5abf32b74e6b6eff57d80b85c893036a"
}
["language":protected]=>
array(18) {
["authenticate"]=>
string(35) "SMTP Error: Could not authenticate."
["connect_host"]=>
string(43) "SMTP Error: Could not connect to SMTP host."
["data_not_accepted"]=>
string(30) "SMTP Error: data not accepted."
["empty_message"]=>
string(18) "Message body empty"
["encoding"]=>
string(18) "Unknown encoding: "
["execute"]=>
string(19) "Could not execute: "
["file_access"]=>
string(23) "Could not access file: "
["file_open"]=>
string(33) "File Error: Could not open file: "
["from_failed"]=>
string(35) "The following From address failed: "
["instantiate"]=>
string(36) "Could not instantiate mail function."
["invalid_address"]=>
string(15) "Invalid address"
["mailer_not_supported"]=>
string(25) " mailer is not supported."
["provide_address"]=>
string(54) "You must provide at least one recipient email address."
["recipients_failed"]=>
string(45) "SMTP Error: The following recipients failed: "
["signing"]=>
string(15) "Signing Error: "
["smtp_connect_failed"]=>
string(22) "SMTP connect() failed."
["smtp_error"]=>
string(19) "SMTP server error: "
["variable_set"]=>
string(30) "Cannot set or reset variable: "
}
["error_count":protected]=>
int(2)
["sign_cert_file":protected]=>
string(0) ""
["sign_key_file":protected]=>
string(0) ""
["sign_key_pass":protected]=>
string(0) ""
["exceptions":protected]=>
bool(true)
}
SMTPデバッグの結果:
SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答3

0

多分単純に SMTP にログイン(認証)できていないんだと思います。 接続情報を見なおしてみるとよいかと思います。英語でエラー内容が書いてあるので、読めばいいのだと思いますが・・・。

投稿2016/06/07 11:34

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

Mailシステムを理解すれば、問題点が切り分けられそうですね。
このプラグイン、ものすごく切り分けがしやすく作ってあります。

SMTP Error: Could not authenticate.
この辺が切り分けのポイントっぽいです。

投稿2016/06/07 09:39

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hiro421

2016/06/07 10:05

ご回答ありがとうございます! SMTP Error: Could not authenticate こちらで検索をかけた結果、これといった解決策が得られず。。 当方あまり詳しくないもので恐縮ですが、切り分けのポイントなどご教示いただくことは可能でしょうか。。
退会済みユーザー

退会済みユーザー

2016/06/07 10:16

あまり詳しくないままでいるのであれば、使わないほうがイイですよ。 メールシステムは知らないまま使うと、人に迷惑をかけるので。 SMTP connect() failed.してます。
guest

0

自己解決

大変失礼いたしました。。
先方の方でメールサーバを変更していたために起きていたようです。。。
焦ってしまいこちらからご質問させていただいてしまいました。
ご回答いただきましたのに大変申し訳ございませんでした。

投稿2016/06/07 13:26

hiro421

総合スコア63

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問