Problem sending emails

hello.
I have a Registration system and it requires for the user to confirm his email when he/she signup my problem is when the user uses Gmail account to register in my website the confirmation email didn’t send to his email and the odd thing is when another user with email lets say from live.com register the message get send with no issue does that mean I can’t send emails to Gmail or what.
this is the code am using to send the messages

$mailHeader   = 'From: info@ovongames.tk';
  $emailSubject = "Activate your Account. OvOnGames";
         $to           = $email;
         $body         = "
        Hello " . $username . " \n
        There's just one more step to go, and it's the easiest one yet.\n
        Click the link below to confirm your Account. \n
        " . BASE_URL . "/register/activiate.php?email=" . $email . "&code=" . $hashActiviateCode . " \n
        OvOnGames Best Free to play browser games";
          mail($to, $emailSubject, $body, $mailHeader);
        $success[] = "You Registered Successfully At OvOnGames Please check Your Email Inpox For Confirmation Code. ";

Good day!

Some companies decided to block 000webhost servers for security reasons. There is nothing we can do about it. I confirm that this issue would be solved if you would be using a paid plan.

1 Like