I have trying to override the email library by doing the following steps:
- Create file core/MY_Email.php
In file add code below
<?php class MY_Email extends CI_Email { public function __construct() { parent::__construct(); } ?>
Load library is normal
$this->load->library('email');
I put a die in the top of my class and it appears to not even be included and just uses the regular system email class. I need to extend it to override _smtp_connect(). I have done this with other classes.
I am using CI 3.0.4. I have tried to trace through the loader class; but cannot figure it out.