ℹ️ The builtin variables
$product,$requester,$requestand$managerare used in this snippet.
For an overview of available variables, please refer to: https://docs.helloid.com/en/service-automation/service-automation-variables.html
This code snippet can be used to send an email using the Write-Information -Tags 'Email' cmdlet.
This snippet executes the following tasks:
-
Define the emailBody object containing the email wrapped in basic HTML.
-
Define a hash table
$splatEmailParams. The keys of the hash table represent the properties of theWrite-Information -Tags 'Email'cmdlet, while the values represent the values entered in the hash table. For an overview of available properties, please refer to: https://docs.helloid.com/en/service-automation/delegated-forms/delegated-form-powershell-scripts.html#email-sends-in-delegated-form-powershell-scripts -
Send the email message. Currently, the email address of the builtin variable
$manageris used as recipient.