我正在使用这个谷歌类和代码https://code.google.com/p/php-smtp-email-validation/检查一系列电子邮件,并获取哪些是真实的,哪些不是。
但我得到一个错误:
无法连接到example.com:25(连接超时) 错误:无法连接到此电子邮件地址的有效邮件服务器:@ example.com
我没有找到类似的东西,我已经禁用了防火墙等......
仍然没有工作:
Array
(
[mx4.hotmail.com] => 5
[mx3.hotmail.com] => 5
[mx2.hotmail.com] => 5
[mx1.hotmail.com] => 5
[hotmail.com] => 0
)
try mx4.hotmail.com:25
<<<
220 BAY004-MC6F11.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Wed, 24 Sep 2014 10:15:49 -0700
>>>
HELO yourdomain.com
<<<
250 BAY004-MC6F11.hotmail.com (3.20.0.138) Hello [177.2.47.23]
>>>
MAIL FROM: <user@yourdomain.com>
<<<
250 user@yourdomain.com....Sender OK
>>>
RCPT TO: <thiago.sabin@hotmail.com>
<<<
250 thiago.sabin@hotmail.com
>>>
RSET
<<<
554 Transaction failed
>>>
quit
<<<
我可以看到发件人没事,我正试图检查我的个人电子邮件thiago.sabin@hotmail.com,这就是答案...... 这段代码实际上非常简单,但我不能让“交易”工作