Error when send email using php mail protocol

I can’t send an email with the mail function.
Here are the settings from the php script

$config[‘protocol’] = ‘mail’;
$config[‘charset’] = ‘utf-8’;
$config[‘wordwrap’] = TRUE;
$config[‘mailtype’] = ‘html’; // text or html
$config[‘newline’] = “\r\n”; // “\r\n” or “\n” or “\r”

$this->email->initialize($config);

$to = send($alert[‘email’]);

// send parameters
// $this->email->from($email, $site_name);
$this->email->from(‘noreply@a*****.ro’, ‘A************’);
$this->email->to($to);

$this->email->subject($email_subject);
$this->email->message($email_content);
// $this->email->set_alt_message(nl2br(strip_tags($email_content)));

And this is the error i received

Oct 15 10:30:02 ********* sendmail-28152[28152]: Ignoring invalid ‘To:’ recipient address ‘m*******@yahoo.com​’