I am using the mail()
function of PHP to try to send some data that is informed in my form; the function is returning true
only the email never reaches the recipient. Below is the PHP code:
$headers = 'From: ServidorCafé <[email protected]>'."\r\n" .
'MIME-Version: 1.0' . "\r\n".
"Return-Path: contato <[email protected]>\r\n".
'Content-type: text/html; charset=UTF-8' . "\r\n";
$envia = mail('[email protected]', 'Pesquisa preenchida', $corpo, $headers);
if($envia){
echo '<div align="center" style="height:30px;width:100%; background-color:green; color:#fff; font-size:13px; font-family:Verdana">Mensagem enviada com sucesso!</div>';
}
in $ body is the HTML form I made with <table>