Hi guys,
I've writen a verification thing for my site, when a user joins, and email is sent to them, with a link they have to click to validate their account.
The problem is, the mail seems to be going stright to the junk mail.
I've tried with hotmail and yahoo.
Can someone please post a great email example that works with the free email providers?
Even if it dosnt allow HTML in the email, it would still be great. Im using this right now:
<?php
$to = $_GET['name'];
$subject = "You've got mail!";
$message = "Hello someone.";
$headers = "From: me@mysite.com\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Reply-To: me <me@mysite.com>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSmail-Priority: High\n";
$headers .= "X-mailer: My mailer";
mail ($to, $subject, $message, $headers)
?>
Thanks for any help.
Regards,