Welcome Guest, Not a member yet? Register   Sign In
Email class doesn't work
#1

(This post was last modified: 03-03-2017, 09:30 AM by dashing.)

Hi, 

I'm actually trying to use Email class for sending mail, but when i try it, this message appear: 

Warning: include(C:\wamp64\www\onsen\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\wamp64\www\onsen\system\core\Exceptions.php on line 269


I've already use it before with a oldest version of Codeigniter and everything work good.
I'm actually working with 3.1.3 Codeigniter'version.

There is m'y controller: 

function sendMail()
{

$nom = $this->input->post('name');
$mail = $this->input->post('email');
$sujet = $this->input->post('subject');
$message = $this->input->post('message');


$config = Array(
   'protocol' => 'smtp',
   'smtp_host' => 'smtp.numericable.be',
   'smtp_port' => 25,
   'smtp_user' => '',
   'smtp_pass' => '',
   'mailtype'  => 'html',
   'newline' =>"\r\n",
   'charset'   => 'UTF-8'
);

$this->load->library('email', $config);

$this->email->set_newline("\r\n");

$this->email->from($mail, $nom);
$this->email->to('******@outlook.com'); 

$this->email->subject($sujet);
$this->email->message(
'Message: ' .$message. '<br>'
);

$this->email->send();




//$this->load->view('onsen/contact');
redirect('contact');
}


If anyone else have the same problem ?
Reply


Messages In This Thread
Email class doesn't work - by dashing - 03-03-2017, 09:16 AM
RE: Email class doesn't work - by InsiteFX - 03-03-2017, 03:19 PM
RE: Email class doesn't work - by dashing - 03-03-2017, 03:55 PM
RE: Email class doesn't work - by Paradinight - 03-03-2017, 11:28 PM
RE: Email class doesn't work - by dashing - 03-04-2017, 07:53 AM
RE: Email class doesn't work - by Diederik - 03-04-2017, 12:46 AM
RE: Email class doesn't work - by dashing - 03-04-2017, 07:55 AM
RE: Email class doesn't work - by InsiteFX - 03-04-2017, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB