1

Exchange サーバー経由でメッセージを送信しようとすると、次のエラー ログが表示されます。

SMTP -> get_lines(): $data was "" 
SMTP -> get_lines(): $str is "220 mail.borschow.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Tue, 7 Apr 2009 21:56:53 -0400 " 
SMTP -> get_lines(): $data is "220 mail.borschow.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Tue, 7 Apr 2009 21:56:53 -0400 " 
SMTP -> FROM SERVER: 220 mail.borschow.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Tue, 7 Apr 2009 21:56:53 -0400 
SMTP -> get_lines(): $data was "" 
SMTP -> get_lines(): $str is "250-mail.borschow.com Hello [10.0.254.231] " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] " 
SMTP -> get_lines(): $str is "250-TURN " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN " 
SMTP -> get_lines(): $str is "250-SIZE " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE " 
SMTP -> get_lines(): $str is "250-ETRN " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN " 
SMTP -> get_lines(): $str is "250-PIPELINING " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING " 
SMTP -> get_lines(): $str is "250-DSN " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN " 
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES " 
SMTP -> get_lines(): $str is "250-8bitmime " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime " 
SMTP -> get_lines(): $str is "250-BINARYMIME " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME " 
SMTP -> get_lines(): $str is "250-CHUNKING " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING " 
SMTP -> get_lines(): $str is "250-VRFY " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY " 
SMTP -> get_lines(): $str is "250-X-LINK2STATE " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE " 
SMTP -> get_lines(): $str is "250-XEXCH50 " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE 250-XEXCH50 " 
SMTP -> get_lines(): $data was "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE 250-XEXCH50 " 
SMTP -> get_lines(): $str is "250 OK " 
SMTP -> get_lines(): $data is "250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE 250-XEXCH50 250 OK " 
SMTP -> FROM SERVER: 250-mail.borschow.com Hello [10.0.254.231] 250-TURN 250-SIZE 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-X-LINK2STATE 250-XEXCH50 250 OK 
SMTP -> get_lines(): $data was "" 
SMTP -> get_lines(): $str is "504 5.7.4 Unrecognized authentication type. " 
SMTP -> get_lines(): $data is "504 5.7.4 Unrecognized authentication type. " 
SMTP -> ERROR: AUTH not accepted from server: 504 5.7.4 Unrecognized authentication type. 
SMTP -> get_lines(): $data was "" 
SMTP -> get_lines(): $str is "250 2.0.0 Resetting " 
SMTP -> get_lines(): $data is "250 2.0.0 Resetting " 
SMTP -> FROM SERVER: 250 2.0.0 Resetting 

ノート

  • 割り当てられたユーザー/パスワードで試してみましたが、管理者は、送信時にユーザー/パスワードを使用する必要さえないと言いました。だから私もそれなしで試しましたが、成功しませんでした。
  • 私もsmtp.gmail.comで試しました

更新 (2009 年 4 月 16 日)

わかりました、私は私の問題を見つけました。

認証なしでメッセージを送信できる SMTP サーバーを使用しています。したがって、コードからログインとパスワードを削除しました。しかし、「認証を使用」フラグを false に設定するのを忘れていました。今、それは働いています。

助けてくれてありがとう!

4

3 に答える 3

3
SMTP -> get_lines(): $str is "504 5.7.4 Unrecognized authentication type. " 
SMTP -> get_lines(): $data is "504 5.7.4 Unrecognized authentication type. " 
SMTP -> ERROR: AUTH not accepted from server: 504 5.7.4 Unrecognized authentication type. 

どの認証を使用していますか。それが問題の原因だと思います。ここにコードを投稿して、さらに支援できるようにします。

于 2009-04-08T03:04:24.320 に答える
2

Gmail は接続に SSL が必要であり、標準の SMTP ポートも使用しないことに注意してください。古いバージョンの phpMailer を使用している場合は、それを機能させるために一種のハックを作成する必要があります。

参考になるページはこちら

于 2009-04-08T03:02:51.920 に答える
0

これを追加してみてください:

$mail->SMTPAuth   = true;

$mail->SMTPSecure = "tls";

最近では、多くの SMTP サーバーで TLS が必要とされています。

于 2011-07-28T21:24:34.970 に答える