loading...

Discussion on: Sending emails in NodeJs with Nodemailer

Collapse
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:

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

// remaining code
Collapse
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.