SENDGRID EMAIL API Following code includes the use of simple emailing API and provides a middleware for sending emails