router.get('/email', async (req, res) => { try { await EmailSender.sendMessage( 'bijaya@bijaya.com', 'Hello world', 'test', 'Test' ) return res.status(200).send('Successfully sent email.') } catch (exception) { return res.status(500).send(exception.message) } })