"/> ">

>백엔드 개발 >PHP 튜토리얼 >用pop3或者i地图收邮件的各种异常,实在搞不出来,望!

用pop3或者i地图收邮件的各种异常,实在搞不出来,望!

WBOY
WBOY원래의
2016-06-13 10:34:511335검색

用pop3或者imap收邮件的各种错误,实在搞不出来,望高手指点!!!!!
126,163,sina,139都是行的。

hotmail :imap_open("{pop.live.com:110/pop3}INBOX","xxx","xxx");
imap_errors() 输出:[0] => Connection failed to rds.live.com.nsatc.net,110: Connection timed out

"{imap.live.con:993/imap/ssl}INBOX"
imap_errors() 输出:[0] => Can't connect to nj.redirect.local,993: Connection timed out

qq :"{pop.qq.com:110/pop3}INBOX"
imap_errors() 输出:[0] => 454 POP????δ??????????????: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=166 ACCOUNT IS NOT ENABLED FOR POP ACCESS. FOR MORE DETAILS PLEASE VISIT: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=166
  [1] => POP3 connection broken in response

  "{imap.qq.com:993/imap/ssl}INBOX"
imap_errors() 输出:[0] => Can not authenticate to IMAP server: 

sohu: "{pop.sohu.com:110/pop3}INBOX"
imap_errors() 输出:[0] => TLS/SSL failure for pop.sohu.com: SSL negotiation failed
"{imap.sohu.com:993/imap/ssl}INBOX"
imap_errors() 输出:[0] => TLS/SSL failure for imap.sohu.com: SSL negotiation failed

gmail :"{pop.gmail.com:110/pop3}INBOX"
imap_errors() 输出:[0] => Connection failed to gmail-pop.l.google.com,110: Connection timed out
  [1] => Connection failed to gmail-pop.l.google.com,110: Connection timed out
"{imap.gmail.com:993/imap/ssl}INBOX"是可以收到的。

------解决方案--------------------
主要问题在于,了解每个邮件系统支持的功能,比如是否支持pop,是否支持ssl/tls,根据实际情况分别处理。推荐使用phpmailer,封装的不错
------解决方案--------------------
估计是人家邮件服务器的问题。不想让你这么玩

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
이전 기사:帮忙观段代码다음 기사:PHP怎么显示二进制数据