We get these type of questions all the time.  I'm not sure what you mean by  "I am not getting to the OTP page" or what this has to do with phpmailer.  If emails are not going out as expected, one reason would be that this wouldn't work with godaddy, as you'd need the hostname and whatever other credentials for their mail server.     $mail->isSMTP(); $mail->SMTPAuth = false; $mail->Port = 25; $mail->Host = "localhost";