Not sure if this is a problem with my PHP or a mail server issue.
I have a feedback form I made in php. The user fills a form, submits and my mail server takes over. To get past my mail server I found the only way was to send to a local address and have the server automaticaly forward. Otherwise I need authentification. I want my feedbacks to be sent to my hotmail acount. Hers a sniplet of the headers used in the php form:
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers .= "To: Admin <journy101@localhost>\r\n";
$headers .= "Reply-To: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers .= "X-Priority: ".$_POST['priority']."\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Hello World";
The php works, It conects and sends to journy101@localhost, message gets acepted for delivery, and my server automaticaly forwards it to hotmail. I did this in my acount settings for the server, I set to auto forward. Problem is I am getting the mail in my Junk folder.
When I researched this issue, I discovered that if the To: or CC: line does not contain the recipitants hotmail address then it is Junk, heres a sniplet of the headers I get in my junk box over at hotmail.
Since the only way I can find to get it over to my hotmail acount without it asking me for authentification is to send to my local address and have it forward from there, the headers seem to be forwarded untouched.
Tryed changeing the To line in the php but leaveing the first parameter to mail function untouched, but no luck.
I would rather recieve the mails at hotmail, but cant find a way for it not to be junk.
Can someone please guide me on any posible solutions.