This script will help you sedne email using SendGrid account created from Microsoft Azure. The code is PowerShell code. To go through step by step explaination refer to the link - http://sanganakauthority.blogspot.in/2017/04/send-email-from-azure-sendgrid-using.html

The code is based on PowerShell. Uses Send-MailMessage comand to send emails.