【发布时间】:2016-10-14 10:55:57
【问题描述】:
我看了很多解决方案页面,但我无法解决这个问题。我不明白为什么会这样,因为我昨天使用它时一切都很完美。请帮助我:(
注意:我只是网页管理员,不是服务器管理员
!!!!你可以在这里查看我的代码并下载 --> http://s2.dosya.tc/server/6vnkfc/codes.rar.html
我的日志:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 "
SMTP -> get_lines(): $data is "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 "
SMTP -> get_lines(): $data was "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 "
SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data is "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data was "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $str is "220 and/or bulk e-mail. "
SMTP -> get_lines(): $data is "220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "
SMTP -> FROM SERVER:220-nserver75.emikrondns.com ESMTP Exim 4.87 #1 Tue, 14 Jun 2016 00:22:22 +0300 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] "
SMTP -> get_lines(): $data was "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] "
SMTP -> get_lines(): $str is "250-SIZE 52428800 "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 "
SMTP -> get_lines(): $data was "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 "
SMTP -> get_lines(): $str is "250-8BITMIME "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME "
SMTP -> get_lines(): $data was "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
SMTP -> get_lines(): $data was "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING "
SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data was "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $str is "250 HELP "
SMTP -> get_lines(): $data is "250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP "
SMTP -> FROM SERVER: 250-nserver75.emikrondns.com Hello gorselsozluk.com [37.247.96.230] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 Authentication succeeded "
SMTP -> get_lines(): $data is "235 Authentication succeeded "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK "
SMTP -> get_lines(): $data is "250 OK "
SMTP -> FROM SERVER:250 OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Accepted "
SMTP -> get_lines(): $data is "250 Accepted "
SMTP -> FROM SERVER:250 Accepted
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself "
SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself "
SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "421 Unexpected failure, please try later "
SMTP -> get_lines(): $data is "421 Unexpected failure, please try later "
SMTP -> FROM SERVER:421 Unexpected failure, please try later
SMTP -> ERROR: DATA not accepted from server: 421 Unexpected failure, please try later
SMTP Error: Data not accepted.
【问题讨论】:
-
您认为与我们分享您的代码吗?因为错误输出对你没有帮助
-
Ivan 是对的——但一个疯狂的猜测是你没有遵守 SMTP 命令的顺序约束——也就是说,哪些命令可以在什么时候出现。也就是说,除非您这样做是出于教育目的,否则请去找一个支持良好的库来为您做这件事。 SMTP 在所有情况下都是一项要求很高的事情,并且存在大量损坏的实现,这意味着您将需要在代码中解决这些实现,而不要成为其他所有人都可以解决的另一个。
-
@IvanBarayev 你可以在这里查看我的代码并下载 -> s2.dosya.tc/server/6vnkfc/codes.rar.html