Email的问题
本帖最后由 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']= 'rirny@163.com';
$config['smtp_pass']= '********';
$this->email->initialize($config);
$this->email->from('rirny@163.com', '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(); 没有配置smtp服务器 咋弄。。。小弟是菜鸟 我用自己写的 类是可以发的呀。 163的邮件服务器好像不能发,换其他的试试 有没有可以发的呀 自已架了个邮件服务器。 还是不行呢。 如果自己没有邮件服务器,推荐你用tom的邮箱 其实只要在config建个email.php配置下邮箱就可以
页:
[1]
2