skip to Main Content

HTML is not rendering properly in nodemailer

<div style = "height:auto;width:auto; background-color:#5C81F4;display:flex; justify-content:center;"> <div style="display:flex;flex-direction:column; width:90vw;height:auto;overflow:hidden;border-radius:20px; background-color:#ffffff;margin-top:40px;margin-bottom:40px;"> <h1 style="display:flex; justify-self:center; align-self:center;color:#2A2836;">Quote of the Day</h1> <p style = "font-size:30px;height:auto; color:#2A2836;margin-left:10px;overflow:hidden;"> "${quote}" </p> <p style ="display:flex; margin-right:10px; font-size:20px;color:#2A2836;justify-self:end;align-self:end">- <i>${author}</i></p> </div> </div> This is my html code which I want…

VIEW QUESTION

Javascript – Nodemailer won't send emails

I have a bug related to Nodemailer v. 6.9.3. When I launch nodeJS localhost, then this appears: Error: connect ECONNREFUSED 127.0.0.1:465 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -111, code: 'ESOCKET', syscall: 'connect', address: '127.0.0.1', port: 465, command: 'CONN' }…

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