You can't handle any exceptions when using pop3 or I map to receive emails. hope!

Source: Internet
Author: User
I can't handle any errors of using pop3 or imap to receive emails. I hope you can stick to it !!!!! 126,163, sina, and 139 are all rows. Hotmail: imap_open (& quot; {pop.live.com: 110/pop3} INBOX & quot;, & quot; xxx & quot;, & quot; xxx & quot ;); I can't handle any errors of using pop3 or imap to receive emails. I hope you can stick to it !!!!!
126,163, sina, and 139 are all rows.

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

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

Qq: "{pop.qq.com: 110/pop3} INBOX"
Imap_errors () output: [0] => 454 POP ???? Delta ?????????????? : 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 () output: [0] => Can not authenticate to IMAP server:

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

Gmail: "{pop.gmail.com: 110/pop3} INBOX"
Imap_errors () output: [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" is acceptable.

------ Solution --------------------
The main problem is to understand the features supported by each mail system, such as whether pop is supported and whether ssl/tls is supported, which can be handled separately based on the actual situation. Phpmailer is recommended for good encapsulation.
------ Solution --------------------
It is estimated that it is a problem with people's mail servers. I don't want you to do this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.