Working on a web application hosted on a server Infomaniak, I could not send emails.
The reason is because Infomaniak, in php.ini, has set safe_mode = off.
Searching on Google, I found the solution in the Expression Engine forum.
For CodeIgniter 2.x: edit /system/libraries/Email.php
Line 54: set $_safe_mode to true.
var $_safe_mode = TRUE;
Line 94: comment line.
//$this->_safe_mode = ((boolean)@ini_get("safe_mode") === FALSE) ? FALSE : TRUE;
Line 130: comment line.
//$this->_safe_mode = ((boolean)@ini_get("safe_mode") === FALSE) ? FALSE : TRUE;
Now it is possible to send email as well.