Ciao,
hai provato con
Codice PHP:
if( $_POST['email'] == $_POST['confermaemail'] ) 
?

Se vuoi integrarlo all'if già esistente puoi far
Codice PHP:
if( empty($_POST['nome']) || 
empty(
$_POST['cognome']) || 
empty(
$_POST['telefono']) || 
empty(
$_POST['email']) || 
empty(
$_POST['confermaemail']) || 
$_POST['email'] != $_POST['confermaemail']){
    
form nn inviato