|
本帖最后由 rirny 于 2009-4-30 16:40 编辑
出现:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
是怎么回事。邮件总发不出去........
设置是这样的:
$this->load->library('email');
$config['protocol'] = 'smtp';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$config['smtp_host']= 'smtp.163.com'; //用的是163的
$config['smtp_user']= [email=]'rirny@163.com'[/email];
$config['smtp_pass']= '********';
$this->email->initialize($config);
$this->email->from([email=]'rirny@163.com'[/email], 'email test');
$this->email->to("rirny@163.com");
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger(); |
|