El error que te da es porque tenes mal puesta la dirección del servidor SMTP.
Para usar sendmail tendrias que quitar esta parte del código:
Código PHP:
$mail->IsSMTP();
//SMTP HOST config
if (SMTP_HOST!=""){
$mail->Host = SMTP_HOST; // sets custom SMTP server
}
//SMTP PORT config
if (SMTP_PORT!=""){
$mail->Port = SMTP_PORT; // set a custom SMTP port
}
//SMTP AUTH config
if (SMTP_AUTH==true){
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Username = SMTP_USER; // SMTP username
$mail->Password = SMTP_PASS; // SMTP password
}
Si así funciona bien, sino pega el código completo porque con solo esa parte se hace imposible saber si hay más cosas que sacar.