1
I’m using the nodemailer
for sending emails on my server HTML
in a variable, I wonder if it is possible to leave saved in a arquivo.html
and just call his content to send that email. I’m currently using it that way.
conta.sendMail({
from: '[email protected]',
to: req.body.nome+' <'+req.body.email+'>',
subject: 'ASSUNTO',
html: html
}, (err) => {
if(err){
throw err
}else{
console.log('Email Enviado')
}
})
the variable html
is being declared in full html
that I will send.