fetch_assoc(); if ($numrows > 0) { if ($admin_data != null) { $from = 'sgpc.india@gmail.com'; //$to = 'info@skybirdlogistic.com'; $to = 'sgpc.india@gmail.com'; $subject = 'Forget Password'; $headers = "From: " . strip_tags('sgpc.india@gmail.com') . "\r\n"; $headers .= "Reply-To: " . strip_tags('sgpc.india@gmail.com') . "\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; $message = 'Your Password is ' . $admin_data['password'] . ''; // mail($row['email'], 'enquiry', 'Name: '.$name.'',$headers); mail($to, $subject, $message, $headers); echo ''; header("Location:auth-login"); ?>