Summary: One of the typical scenarios when you need to send email to some users in your organization. For example, send an email with some information to users whose account has been created for the last 30 days. This article provides step-by-step instructions on how to do this.
Applies to: Cayosoft Administrator 6.3.1 or later
ID: KB20191011-2
-
Create AD Users report. For details, please see Working with rules article
- Change rule Output type to Send Email Alert
-
Add mail attribute to Properties to display and System properties in AD Users report
-
To get users that were created for the last 30 days, add this code to Initialization Script section: {$global:DatePeriod = (Get-Date).AddDays(-30)}
-
Add filter to Query Criteria: {whenCreated -ge $DatePeriod}
-
Add this script to To field: { $emails=@(); ($LastResult | %{ if($Null -ne $_ -and $_.mail -ne ''){$emails += $_.mail; }}); $emails; }.InvokeReturnAsIs()
-
Specify Subject and Message
-
Save changes
Related articles
How to customize font in Cayosoft Output E-mail
Comments
0 comments
Please sign in to leave a comment.