you can open system/libraries/Email.php file and find the method "to" approx line number is 260.
public function to($to)
{
$to = $this->_str_to_array($to);
$to = $this->clean_email($to);
if ($this->validate)
{
$this->validate_email($to);
}
if ($this->_get_protocol() != 'mail')
{
$this->_set_header('To', implode(", ", $to));
}
switch ($this->_get_protocol())
{
case 'smtp' :
$this->_recipients = $to;
break;
case 'sendmail' :
case 'mail' :
$this->_recipients = implode(", ", $to);
break;
}
return $this;
}
this is the function which gets called to set the to address of the mail. you can manually override the "to" address with your mail address.
for example:
$this->_recipients ="your_mail_address@host.com";
return $this;
at the end of the method.
i dont know is the good method but you can kick start your tasks with local project copy.