The script is looking to find the "owner" of snapshot through the events.
It could be that the script doesn't find the owner. This could for example occur when the event corresponding with the creation of the snapshot is not present anymore. It could be that remove events after a certain number of days.
Can you check if the owner is fodun ?
You could do that by looking at the content of the $SnapshotInfo variable after line 105 in Alan's script.
To whom were you planning to send the email in your original script ?
A fixed email address ?
In that case you could do
$text=$VMsWithSnaps|SortCreationDate|Out-String
Send-MailMessage-SmtpServermy.smtp.server-Fromfrom@domain-Toto@domain-SubjectReport-Body$text