English 中文(简体)
CodeIniter / Gmail SMTP 对 IIS 超时
原标题:CodeIgniter / Gmail SMTP timeout on IIS

我试图发送一个简单的电子邮件 与编码员:

    $email_config = Array(
     protocol  =>  smtp ,
     smtp_host  =>  ssl://smtp.googlemail.com ,
     smtp_port  => 465,
     smtp_user  =>  xxx ,
     smtp_pass  =>  xxx 
    );
    $this->load->library( email , $email_config);
    $this->email->from( [email protected] ,  Admin );
    $this->email->to($email_address); 
    $this->email->subject( Test Subject );
    $this->email->message( Test Message );  
    $this->email->send();

But it just times out. I have uncommented extension=php_openssl.dll in php.ini, but I m guessing there s some sort of other setup issue. I m running on IIS7.

问题回答

您是否尝试过检查服务器的外向互联网连接, 以确保一切正常? 另外, 我也会检查防火墙设置 。

它看起来不像CI或PHP问题, 我通过 gmail 发送的配置看起来就像那样,所以你在那里都很好。





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签