Script to find Daily receive emails
Posted on 2013-12-16
I want to ran an script on schedule basis to get one recipient's daily's receive email then send to his email address.
Get-MessageTrackingLog -Start (Get-Date).adddays(-1) -ResultSize unlimited -Recipients email@example.com | select-object Sender, MessageSubject, Timestamp | ConvertTo-Html | Out-File E:\Report\report.html
I want to above cmdlet run on the task schedule on end of the day and send email to recipient.