In this video, I set up a free SendGrid account in Azure and send email with the Rest API and PowerShell. I walk through the reusable function that builds the header and body of the message. This function is helpful for anyone who needs to send email from a PowerShell script that doesn’t have access to an SMTP relay or are behind a firewall that blocks outbound SMTP traffic.
The function from the video can be found on GitHub at:
https://github.com/tsrob50/SendGridFunction/