I want to send email via php but the mail()
function is not returning an error, and I do not know if my code is wrong:
<?php
$to = "MEU EMAIL";
$subject = "Php Mail";
$body = "Test Message From PHP";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'From: Your name <[email protected]>' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $body, $headers);
?>
It does not return an error, nor does email arrive, I use hotmail.