Contact form does not send message - UOL Host

The form even takes the data after we click on submit, sends the user to a thank you page but the message does not reach the destination, which is my email.

HTML :

<section id="contato">                      
                <h1>CONTATO</h1>    
                    <div id="caixas-texto">
                        <form action="contato.php" method="post">
                            <label for="nome">Nome:</label> <br>
                            <input type="text" id="nome" name="nome" size="48" maxlength="48"><br><br>
                            <label for="fone">Telefone:</label> <br>
                            <input type="text" id="fone" name="fone" size="11" maxlength="11"><br><br>
                            <label for="email">Email:</label> <br>
                            <input type="text" id="email" name="email" size="48" maxlength="48"><br><br>
                            <label for="msg">Mensagem:</label> <br>
                            <textarea id="msg" name="msg" rows="5" cols="50"maxlength="200"
                            placeholder="Mande sua mensagem! Vamos trabalhar!"></textarea>

                            <input type="submit" value="Enviar" id="bt_enviar">
                        </form>
                    </div>  

PHP

        <?php
$para= "[email protected]";
$assunto= "Contato pelo site";
$nome= $_REQUEST['nome'];
$fone= $_REQUEST['fone'];
$email= $_REQUEST['email'];
$mensagem= $_REQUEST['msg'];
    $corpo= "<strong> Mensagem de Contato</strong><br><br>";
    $corpo .= "<br><strong> Nome: </strong> $nome";
    $corpo .= "<br><strong> Telefone: </strong> $fone";
    $corpo .= "<br><strong> Email: </strong> $email";
    $corpo .= "<br><strong> Mensagem: </strong> $mensagem"; 
    $header= "Content-Type: text/html; charset= utf-8\n";
    $header .="From: $email Reply-to: $email\n";    
mail($para,$email,$assunto,$corpo,$header);
header("location:retorno-email.html?envio=enviado");
?>

My site is on a UOL server, I don't understand what might be going on.

Author: Antonio Junior, 2019-01-30

1 answers

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?> 

Must da swapping the order as well.

 3
Author: Iago Carvalho, 2019-01-30 13:09:57