· 10 years ago · May 30, 2016, 11:18 AM
1SMTP Error: Could not authenticate. Message could not be sent.
2
3global $error;
4$mail = new PHPMailer();
5$mail->IsSMTP();
6$mail->SMTPDebug = 0;
7$mail->SMTPAuth = true;
8$mail->SMTPSecure = 'ssl';
9$mail->Host = 'smtp.gmail.com';
10$mail->Port = 465;
11$mail->Username = "@gmail.com";
12$mail->Password = "";
13$mail->SetFrom("", "");