Update SMTP Task Output Target
The following example updates an existing SMTP task output target.
- Connect to the administration web service.
- Specify the unique identifier of the task output target in GUID format.
- Specify the SMTP address to set for the SMTP task output target.
Code Sample
# Updates the SMTP task output target with the specified identifier.
$target = $administration.GET_TaskOutputTarget("3f718566-19e9-45a9-8a0a-0f1a9f9c2c58");
$target.DisplayName = "Updated SMTP Task Output Target";
$target.Addresses.ToAddresses.Clear();
$target.Addresses.ToAddresses += "administrator@demonstration.int";
$administration.SET_TaskOutputSmtpTarget($target);