skip to Main Content

Php – why SMTP error?. when i run on localhost it works. but when i put on my server SMTP error. can someone explains?

use PHPMailerPHPMailerPHPMailer; use PHPMailerPHPMailerException; use PHPMailerPHPMailerSMTP; //Load Composer's autoloader require 'vendor/autoload.php'; function send_password_reset($get_name, $get_email, $token) { $mail = new PHPMailer(true); $mail->SMTPDebug = 3; $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->Username = ''; $mail->Password = ''; $mail->SMTPSecure = 'tls'; $mail->Port…

VIEW QUESTION
Back To Top
Search