【问题标题】:CodeIgniter / Gmail SMTP timeout on IISIIS 上的 CodeIgniter / Gmail SMTP 超时
【发布时间】:2012-06-01 05:31:23
【问题描述】:

我正在尝试使用 codeigniter 发送一封简单的电子邮件:

    $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('no-reply@mysite.com', 'Admin');
    $this->email->to($email_address); 
    $this->email->subject('Test Subject');
    $this->email->message('Test Message');  
    $this->email->send();

但它只是超时。我在 php.ini 中有未注释的 extension=php_openssl.dll, 但我猜还有其他一些设置问题。我在 IIS7 上运行。

【问题讨论】:

    标签: php codeigniter iis smtp gmail


    【解决方案1】:

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

    对我来说,这看起来不像是 CI 或 PHP 问题,我通过 gmail 发送的配置看起来就是这样,所以你们都很好。

    【讨论】:

      猜你喜欢
      • 2012-06-01
      • 2013-11-24
      • 2011-03-26
      • 2010-12-04
      • 2012-11-08
      • 2016-05-10
      • 1970-01-01
      • 2012-11-14
      • 2022-01-03
      相关资源
      最近更新 更多