Hello,
This is something that can only be done using a PowerShell script. Please, find an example of such a script below. In the script:
$to – Specifies email addresses of the notification recipients.
$subject – Specifies the email notification subject.
$emailBodyTemplate – Specifies the email notification template. In the template, the {0} placeholder will be replaced with the value of the Country property, {1} – with the value of the Company property.
$to = "recipient@company.com, recipient2@company.com" # TODO: modify me
$subject = "My Subject" # TODO: modify me
$emailBodyTemplate = @"
Hello,
The user %adm-MemberFullName% was removed from the %name% group.
Removed member properties:
Country: {0};
Company: {1}
"@ # TODO: modify me
# Get member property value
$member = $Context.BindToObjectByDN("%member%")
try
{
$memberCountryPropertyValue = $member.Get("c")
$memberCompanyPropertyValue = $member.Get("company")
}
catch
{}
# Send mail
$emailBody = [System.String]::Format($emailBodyTemplate, @($memberCountryPropertyValue, $memberCompanyPropertyValue))
$Context.SendMail($to, $subject, $emailBody, $NULL)