title: Send mail using Nodejs with HTML body
body: <p>I am trying to send email from my server using nodemailer. Unfortuantely, I have been unabe to test it due to this error:</p>
  
  <pre><code>D:\Full Stack\Node\NodeLoginJWT\functions\password.js:58
          'This token is valid only within two minutes.'
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  SyntaxError: Unexpected string
  at createScript (vm.js:56:10)
  at Object.runInThisContext (vm.js:97:10)
  at Module._compile (module.js:542:28)
  at Object.Module._extensions..js (module.js:579:10)
  at Module.load (module.js:487:32)
  at tryModuleLoad (module.js:446:12)
  at Function.Module._load (module.js:438:3)
  at Module.require (module.js:497:17)
  at require (internal/module.js:20:19)
  at Object.&lt;anonymous&gt; (D:\Full Stack\Node\NodeLoginJWT\routes.js:9:18)
  at Module._compile (module.js:570:32)
  at Object.Module._extensions..js (module.js:579:10)
  at Module.load (module.js:487:32)
  at tryModuleLoad (module.js:446:12)
  at Function.Module._load (module.js:438:3)
  at Module.require (module.js:497:17)
  [nodemon] app crashed - waiting for file changes before starting...
  </code></pre>
  
  <p>This is the code block causing the error:</p>
  
  <pre><code>const transporter = nodeMailer.createTransport(`smtps://${config.email}:${config.password}@smtp.gmail.com`);
  
    const mailOptions = {
      from: `"${conifg.name}" &lt;${config.email}&gt;`,
      to: email,
      subject: 'Reset Password',
      html: `Hello ${user.name}`, 
  
          'Your account password token is ${random}'
          'This token is valid only within two minutes.'
  
          'Thanks,'
          'Team. '
    };
  
    return transporter.sendMail(mailOptions);
  </code></pre>