Yes, you should replace that with the SMTP relay server you use in your environment.
For a single ESXi host, just update the line where the $entity variable recieves it's value
$entity = Get-VMHost -Name ESX1
Yes, you should replace that with the SMTP relay server you use in your environment.
For a single ESXi host, just update the line where the $entity variable recieves it's value
$entity = Get-VMHost -Name ESX1