How to configure SMTP mail setting

Detection score: 5.0

<blockquote>
  <p>$host = $_SERVER['HTTP_HOST'];
          preg_match("/[^./]+.[^./]+$/", $host, $matches);
          $domain_name=$matches[0];</p>
</blockquote>

<pre><code>    $qry = "SELECT * FROM tbl_users WHERE email = '".$_GET['email']."'"; 
    $result = mysqli_query($mysqli,$qry);
    $row = mysqli_fetch_assoc($result);

    if($row['email']!="")
    {

        $to = $_GET['email'];
        // subject
        $subject = ''.APP_NAME.' password';
</code></pre>

<p>My developer gave me this code earlier for password reset, Now I've change my service provider which doesn't support port 25, Hence can anyone help me how to configure port in this ?</p>
Posted 11 days ago | reported 11 days ago
Posted by Yogesh Jangid (1)

Caught by 3 reasons: