Sending an email using PHPMailer and GMAIL SMTP
问题 I have read every example out in the web and I still cant seem to connect to the GMAIL SMTP. Here is the code that I am running: include("phpMailer/class.phpmailer.php"); // path to the PHPMailer class $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "myUsername"; // SMTP username $mail->Password = "myPassword"; // SMTP password $mail->SMTPDebug = 1; $webmaster_email = "webMasterEmail@gmail.com"; //Reply to