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

Nodemailer does not send mail from Ubuntu server

Good day, I have simple Nodejs program that is using Nodemailer: var syncSql = require('sync-mysql'); var nodemailer = require('nodemailer'); var syncCon = new syncSql( { host:'localhost', user:'_nodeuser', password:'_password', database:'mydatabase' }); var transporter = nodemailer.createTransport( { service: 'gmail', auth: { user:…

VIEW QUESTION
Back To Top
Search