How to solve the problem – smtp connect() failed. https://github.com/phpmailer/phpmailer/wiki/troubleshooting? I have the sample detail: <?php include('header.php'); require 'PHPMailerAutoload.php'; $message=''; if(isset($_POST["submit"])) { $path='upload/'.$_FILES["resume"]["name"]; move_uploaded_file($_FILES["resume"]["tmp_name"], $path); $mail = new PHPMailer; ...