Discussion on: Sending emails in NodeJs with Nodemailer

ziizium profile image
Habdul Hazeez

You can provide a language after the three back ticks before the code blocks and your JavaScript code will be rendered with syntax highlighting.

The following is taken from your code snippet:

const http = require('http');
const express = require('express');
const nodemailer = require('nodemailer');
const app = express.Router();
const port = 3000;

// remaining code
alakazam03 profile image
vaibhav aggarwal Author

Hey, Habdul Hazeez. Thanks for the great tip man.

I have made the changes and it sure does look a lot better. Appreciate it.