Creo no estas usando la mejor forma para strlen, si te fijas strlen espera un string, y al tu hacer $iemail && $inombre, estas convirtiendo a un booleano y luego nuevamente a strlen.
Si quieres comparar que ciertas variables no esten vacias puedes hacer esto:
Código PHP:
$required = array( "iemail", "inombre", "icoment" );
$empty = false;
foreach( $required as $var ) {
if( empty( $$var ) ) {
$empty = true;
}
}
if( !$empty ) {
mail...
} else {
echo $formbad;
exit;
}
Saludos.