Last active
October 17, 2020 05:13
-
-
Save darrenjrobinson/d837800c11edd08539cf3b81fb3eaad5 to your computer and use it in GitHub Desktop.
SendGrid Message Format from a PowerShell Azure Function. Associated Blogpost https://blog.darrenjrobinson.com/using-the-azure-functions-sendgrid-output-binding-with-powershell/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mail = @{ | |
"personalizations" = @( | |
@{ | |
"to" = @( | |
@{ | |
"email" = "$($env:sendGridToAddress)" | |
} | |
) | |
} | |
) | |
"from" = @{ | |
"email" = "$($env:sendGridFromAddress)" | |
} | |
"subject" = "$($emailSubject)" | |
"content" = @( | |
@{ | |
"type" = "text/plain" | |
"value" = "$($emailBody)" | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment