When I'm sending my mail, it's simple explaied... Ending up in the junkmail at gmail.com.
I know there's multiple other people that has have had this problem. But I've googled for hours and can't seem to solve it. Is there any wrong in my code, or anything I need to add in my code to make it not end up in the junkmail in gmail.com
$to = 'name@gmail.com';
$subject = 'Subject';
$headers = "MIME-Version: 1.0\r\nContent-Type: text/plain; charset=UTF-8";
$headers = 'From: mail@mydomain.com' . "\r\n" . 'Reply-To: mail@mydomain.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
$message = 'my message with consist of multiple' . $variables . ' from php';
mail($to, $subject, $message, $headers);
Could it be the content of my mail? Or what?