English 中文(简体)
编码器 / Gmail SMTP 在 MAMP / IIS 上超时
原标题:CodeIgniter / Gmail SMTP timeout on MAMP / IIS

我试图用CI 电子邮件课程发送电子邮件, 但页面在发送时会挂挂。 我尝试过使用 MAMP 在 IIS 和 Mac 上都尝试过。 代码和所有地方都复制过的一样, 似乎对其他人都有用!

    $config = Array(
                 protocol   =>  smtp ,
                 smtp_host  =>  ssl://smtp.googlemail.com ,
                 smtp_port  =>  465 ,
                 smtp_user  =>  xxx ,
                 smtp_pass  =>  xxx ,
                 mailtype   =>  html ,
                 starttls   => true
            );

        $this->load->library( email , config);
        $this->email->from( [email protected] ,  George );
        $this->email->to( [email protected] );
        $this->email->subject( hey this is an email );
        $this->email->message( this is the content of the email );
        $this->email->send();

其它服务器设置要尝试吗?

问题回答

好,所以我很尴尬地说,我错过了美元在:

$this->load->library( email , config);

这一整天浪费了尝试每一个港口/服务器/防火墙/安全设置,这是可以想象的。

我希望这能帮助像我一样笨的人





相关问题
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 ...

热门标签