大家好,欢迎来到IT知识分享网。
Flag |
Description |
---|---|
/service=service |
mailbox access service, default is “imap” |
/user=user |
remote user name for login on the server |
/authuser=user |
remote authentication user; if specified this is the user name whose password is used (e.g. administrator) |
/anonymous |
remote access as anonymous user |
/debug |
record protocol telemetry in application’s debug log |
/secure |
do not transmit a plaintext password over the network |
/imap, /imap2, /imap2bis, /imap4, /imap4rev1 |
equivalent to /service=imap |
/pop3 |
equivalent to /service=pop3 |
/nntp |
equivalent to /service=nntp |
/norsh |
do not use rsh or ssh to establish a preauthenticated IMAP session |
/ssl |
use the Secure Socket Layer to encrypt the session |
/validate-cert |
validate certificates from TLS/SSL server (this is the default behavior) |
/novalidate-cert |
do not validate certificates from TLS/SSL server, needed if server uses self-signed certificates |
/tls |
force use of start-TLS to encrypt the session, and reject connection to servers that do not support it |
/notls |
do not do start-TLS to encrypt the session, even with servers that support it |
/readonly |
request read-only mailbox open (IMAP only; ignored on NNTP, and an error with SMTP and POP3) |
很多刚接触imap_open的人时经常会遇到以下错误
imap_open(): Couldn’t open stream {imap..com:143}INBOX
首先出现以上错误的原因有很多,下面大自说一下常见的原因
1.账号密码输入错误,首先确保自己账号密码没有输入错误。(邮箱用的是授权码)
2.确保自己已经正确配置了imap 或pop3。
3.确保请求的地址和端口号没有错误。(默认 imap 端口号143 ssl端口号993 pop3端口号110)。
若以上都没有问题那就输出具体的错误信息
imap_last_error()
这样会输出具体的错误信息这样就可以对应进行处理
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/139744.html