Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php imap_open():无法';t在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}收件箱的流_Php_Email_Imaplib_Codeigniter 4 - Fatal编程技术网

Php imap_open():无法';t在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}收件箱的流

Php imap_open():无法';t在codeigniter中打开hostgator服务器{mail.mydomain.com:993/imap/ssl}收件箱的流,php,email,imaplib,codeigniter-4,Php,Email,Imaplib,Codeigniter 4,我在使用imap库的codeigniter框架中工作。我想将所有邮件从我的邮件服务器发送到我的web应用程序中。 当我使用时,我的代码运行良好 imap_open("{imap.gmail.com:993/imap/ssl}INBOX", my_email, my_password); 但每当我试图访问我的hostgator邮件服务器时,我都会遇到这些类型的错误 1: imap_open(): Couldn't open stream {mail.mydomain.com:

我在使用imap库的codeigniter框架中工作。我想将所有邮件从我的邮件服务器发送到我的web应用程序中。 当我使用时,我的代码运行良好

imap_open("{imap.gmail.com:993/imap/ssl}INBOX", my_email, my_password);
但每当我试图访问我的hostgator邮件服务器时,我都会遇到这些类型的错误

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)
根据您应提供的(安全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):

  • 用户名,您的完整电子邮件地址
  • 你的密码
  • 您的完整的服务器名称
  • 港口: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");
    

    您的身份验证似乎失败了:/yes,但这段代码在我的gmail帐户上运行正常,当我尝试使用hostgaotr mail server时出现上述错误使用您的gmail帐户打开一个工作的imap_是一回事,但使用一个工作的imap客户端(因为它与您的gmail帐户一起工作)对抗hostgaotr(?)服务器,这实际上是说,您的身份验证失败是另一回事。您的身份验证似乎失败了:/yes,但此代码在我的gmail帐户上运行良好,当我尝试使用hostgaotr mail Server时,会出现上述错误使用您的gmail帐户打开一个工作imap是一回事,但使用一个工作imap客户端是一回事(因为它与您的gmail帐户一起工作)针对hostgaotr(?)服务器,也就是说,您的身份验证失败是另一回事。我尝试了您提供的正常传入邮件设置。我遇到此错误,无法对IMAP服务器进行身份验证:[AUTHENTICATIONFAILED]身份验证失败。但是如果我尝试IMAP_open({full.servername.com:993/imap/ssl/tls}),“我的。email@servername.com“,“pwd”);我收到错误消息:未知:无法打开邮箱{mail.myserver.com:993/imap/ssl/tls}:无效的远程规范(errflg=2)我尝试了您提供的正常传入邮件设置。我收到此错误,无法对imap服务器进行身份验证:[身份验证失败]身份验证失败。但是如果我尝试imap_打开({full.servername.com:993/imap/ssl/tls}),我的。email@servername.com“,“pwd”);我收到错误消息:未知:无法打开邮箱{mail.myserver.com:993/imap/ssl/tls}:无效的远程规范(errflg=2)