Hi,
I am trying to set up a system that automatically sends out emails to subscribers. I am testing it on my system using my own email address as the recipient address. For some reason it gets put into my junk folder by outlook express. Any way of stopping this?
It will eventually be used to send to people who use all sorts of different email clients. Are there any easy ways to avoid these being filtered into the junk mail?
My code is:
<?php
$body = <<<HTML
Poo: {$poo}.
Wee: {$wee}.
HTML;
$to = 'latemodern@hotmail.com';
$subject = 'Activity Has Been Booked';
$headers = "From: office@happeninguk.com\r\nContent-type: text/plain\r\n";
if(mail($to, $subject, $body, $headers));
else echo "Sending mail failed";
?>
Thanks