I'm using the mail()
to send a simple email but from some reason everything I try it goes straight to spam, am I missing something here?
<?php
$to = "[email protected]";
$subject = "your subject";
$body = "<p>Your Body</p>";
$headers = "From: Sender Name <[email protected]>" . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $body, $headers);
?>