|
本帖最后由 bhbhjackyin 于 2009-3-30 10:50 编辑
我要测试一下发邮件使用qq的smtp.qq.com
在config/email.php里写了
<?php
$config['protocol'] = 'smtp';
$config['charset'] = 'utf-8';
$config['smtp_host'] = 'smtp.qq.com';
$config['smtp_user'] = '';
$config['smtp_pass'] = '';
?>
controller里:
$this->load->library('email');
$this->email->from([email=]'xxxxx@qq.com'[/email], 'name');
$this->email->to([email=]'xx@163.com'[/email]);
$this->email->subject('mail test');
$this->email->message('mail test content');
$this->email->send();
echo $this->email->print_debugger();
可是老发不成功,我的smtp.qq.com以前是用过的,错误log:
[Mon Mar 30 10:26:56 2009] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\\www\\demo\\libraries\\Email.php on line 1812 |
|