Skip to content

Commit

Permalink
Updated EmailNewUser.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 4f8e642 commit 3b6a6eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EmailNewUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ Param(

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

$body = '{ "personalizations" : [ { "to": [ { "email": "' + $toEmail + '"}],"subject": "Welcome to Fastpath Assure", "substitutions" : { "%name%": "' + $name + '", "%user%": "' + $toEmail + '", "%password%": "' + $userPassword + '", "%url%": "' + $url + '" } } ], "from": { "email": "[email protected]" }, "template_id": "07f3a703-eb92-4c8f-8385-5eb215469383"}'
$body = '{ "personalizations" : [ { "to": [ { "email": "' + $toEmail + '"}],"subject": "Welcome to Fastpath Assure", "substitutions" : { "%name%": "' + $name + '", "%user%": "' + $toEmail + '", "%password%": "' + $userPassword + '", "%url%": "' + $url + '" } } ], "from": { "email": "[email protected]" }, "template_id": "' + $template + '"}'


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

0 comments on commit 3b6a6eb

Please sign in to comment.