欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-04-27 08:10:00
...
用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,封装的不错
------解决方案--------------------
估计是人家邮件服务器的问题。不想让你这么玩
用pop3或者i地图收邮件的各种异常,实在搞不出来,望!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频