Mail error SMTP Error: Could not connect to SMTP host.

i think its bc of mail->port=465. but iam not sure.

                    $mail = new PHPMailer();
                    $mail->SMTPAuth   = true;                  // enable SMTP authentication
                    $mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
                    $mail->Host       = "";      // sets GMAIL as the SMTP server
                    $mail->Port       = 465;                   // set the SMTP port for the GMAIL server
                    $mail->Username = "";    //yourname@yourdomain
                    $mail->Password = "fe";           //password

                    $mail->AddAddress($email_p, $user_name_p); //to:    
                    $mail->Subject = "Forgot password";
                    //html body
                    $mail->Body = "HEllo $first_name_db,<br/>Your password are $password_db";
                    $mail->From = "";
                    $mail->FromName = "a";
                    $mail->wordWrap = 50;

                        $forgot_error .= "Mail error ".$mail->ErrorInfo;

also what is wordwrap= 50 means?

where is your site hosted? its blocked from some shared hosting providers (godaddy)

word wrap limits your line length wraps to next live after 50 words