Thank you for the reply.
I get a message saying ARRAY and I tried getting the elements from the array but I don't get anything.
$status_text = $db->rawQueryOne("SELECT texto_email FROM status WHERE id_status ='" . $modeldata['status_id'] . "'");
$mailer = new Mailer;
$mailer->send_mail("myemail@gmail.com", "An Example Subject", "The message to be sent.<br><br>-->$status_text<--<br><br><br><br>IT Team");
And in the email I get: -->Array<-- where the $status_text is inserted.
I have tried with all this options:
$status_text[0];
$status_text[1];
print_r($status_text);
And all the same result.
Any hint?
Regards,
Carlos