【发布时间】:2016-12-31 09:09:20
【问题描述】:
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'smtp.googlemail.com',
'smtp_port' => 587,
'smtp_user' => 'example@gmail.com',
'smtp_pass' => 'password',
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->email->from('example@gmail.com', 'easyfact');
$this->email->to('example@gmail.com');
$this->email->cc('example@gmail.com');
$this->email->bcc('example@gmail.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();
reulst 网站
Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
和
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
我使用 wamppserver 帮助我
【问题讨论】:
标签: email codeigniter-3