1
After sending the message Alert appears, but the browser does not return pro contact.html (form).
Then I wonder if I can create a style for this alert too.
send php.
// ENVIO DO EMAIL
$enviado = $mail->Send();
// Limpa os destinatários e os anexos
$mail->ClearAllRecipients();
// verifica se enviou corretamente
if ( $enviado ) {
    echo "<script>
        alert('Pedido enviado!');
    </script>";
}
else {
    echo "Não foi possível enviar o e-mail.";
    echo "<b>Detalhes do erro:</b> " . $mail->ErrorInfo;
}
header('Refresh: 10; Location: contact.html');
place the contents of
contact.html– MagicHat