I have a process which sends email to user with a confirmation link after registering into my website. But the mail goes into the spam folder of emails. I tried many codes from internet, but none seems to work. Any help would be appreciated.
Here is my code:
/** Check Spam**/
$mailcheck = spamcheck($_POST['email']);
if ($mailcheck == FALSE) {
browse ("Invalid input");
}else{
$to = $email;
$subject = "Please Verify Your Email Address";
$header = "From: example@example.com";
$message.= "Please Click On The Link Below To Confirm Your Email Address With Us";
$message.=" ";
$message.= "www.mylink.com/subdomain/verification.php?user_verification=$code";
$sendmail = mail($to,$subject,$message,$header);