1
Ich kann keine E-Mail auf dem Host senden (https://www.namecheap.com). CodeIgniter
RahmenIch kann keine E-Mail senden mit CodeIgniter und namecaep
$config = Array(
'protocol' => 'HTTP',// also used smtp
'smtp_host' => 'mail.sss.com.ng',
'smtp_port' => 26,
'smtp_user' => '[email protected]', // change it to yours
'smtp_pass' => '3333333', // change it to yours
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('[email protected]'); // change it to yours
$this->email->to($to);// change it to yours
$this->email->subject($subject);
$this->email->message('6666');
if($this->email->send())
{
echo 'Email sent.';
}
else
{
show_error($this->email->print_debugger());
}
}
Ich erhalte diesen Fehler verwendet:
error An Error Was Encountered
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
User-Agent: CodeIgniter