constmailjs=require('nodemailjs');constSendMail=newmailjs.mail('email of person','gmail',{user: 'your email',pass: 'your password'}).send('Title','Content');
Send email with html content
constmailjs=require('nodemailjs');// https://webformatter.com/html -> format in one lineconsthtml="<h1>Test</h1><br><p>This is a test</p>";constSendMail=newmailjs.mail('email of person','gmail',{user: 'your email',pass: 'your password'}).send('Title',null,html);