Skip to content

Commit

Permalink
Updated EmailEnvironmentSuccess.ps1 in Azure Automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nboettcher committed Nov 23, 2016
1 parent 3b6a6eb commit da2edaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EmailEnvironmentSuccess.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ Param(

$password = Get-AutomationVariable -Name 'SendGridAPIKey'
$url = Get-AutomationVariable -Name 'WebAppUrl'
$template = Get-AutomationVariable -Name 'NewEnvironmentTemplate'

$body = '{ "personalizations" : [ { "to": [ { "email": "' + $toEmail + '"}],"subject": "Your new Fastpath Assure environment is ready", "substitutions" : { "%name%": "' + $name + '", "%environment%": "' + $environment + '", "%url%": "' + $url + '" } } ], "from": { "email": "[email protected]" }, "template_id": "cc9ae13b-a92d-4f27-bc31-5b83f5e476d7"}'
$body = '{ "personalizations" : [ { "to": [ { "email": "' + $toEmail + '"}],"subject": "Your new Fastpath Assure environment is ready", "substitutions" : { "%name%": "' + $name + '", "%environment%": "' + $environment + '", "%url%": "' + $url + '" } } ], "from": { "email": "[email protected]" }, "template_id": "' + $template + '"}'


$url = "https://api.sendgrid.com/v3/mail/send"
Expand Down

0 comments on commit da2edaa

Please sign in to comment.