I am a beginner to phpmailer. I followed the instructions and copied their code for my small project. Now there seems to be a problem with $mail->AddAddress(). After the line the execution stops and non further line is executed. Here is my code:-
//some db details hidden
$x = mysqli_fetch_array($sqll);
$vcode = $x['vcode'];
$name = $x['name'];
require_once('class.phpmailer.php');
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "ssl://smtp.gmail.com";
$mail->Port = 465; // or 587
$mail->IsHTML(true);
$mail->Username = "sidhurockz55@gmail.com";
$mail->Password = "Password";
$mail->From = "sidhurockz55@gmail.com";
$mail->Subject = "Verify Email";
$mail->AddAddress($email,$name);
This is the Source Code displayed when this code is used:-
When I comment the $mail->AddAddress($email,$name);. The full source code is displayed:-