imap_open():无法在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}INBOX的流 [英] imap_open(): Couldn't open stream for hostgator server {mail.mydomain.com:993/imap/ssl}INBOX in codeigniter
本文介绍了imap_open():无法在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}INBOX的流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用imap库在codeigniter框架中工作.我想将所有邮件从邮件服务器发送到Web应用程序.我使用时我的代码工作正常
I am working in codeigniter framework using imap library. I want to get all mails from my mail server into my web app. My code is working fine when i am using
imap_open("{imap.gmail.com:993/imap/ssl}INBOX", my_email, my_password);
但是每当我尝试访问hostgator邮件服务器时,都会出现此类错误.
but whenever I tried to get access of my hostgator mail server I got these type of errors.
1: imap_open(): Couldn't open stream {mail.mydomain.com:993/imap/ssl}INBOX
2: Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. (errflg=1).
3: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Authentication failed. (errflg=2)
推荐答案
根据您应该提供> HostGator文档(用于安全的imap):
According the HostGator Documentation you should provide (for secured imap):
- 用户名,您的完整电子邮件地址
- 您的密码
- 您的完整服务器名称
- 端口:993
- SSL:SSL/TLS
您应该以类似
imap_open("{full.servername.com:993/imap/ssl/tls}", "my.email@servername.com","pwd");
您还可以尝试正常的传入邮件设置,这需要
- 用户名,您的完整电子邮件地址
- 您的密码
- 您的完整服务器名称
- 端口:143
- SSL:无
结果:
imap_open("{full.servername.com:143}", "my.email@servername.com","pwd");
这篇关于imap_open():无法在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}INBOX的流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文