I have this script that will email be if a new file has arrvied in a folder.
Instead I would like it to email be the contents of the folder
if (Test-Path C:\Atlas_upload\*.xml)
$emailFrom = "firstname.lastname@example.org"
$emailTo = "email@example.com"
$subject = "You have a new ATLAS file"
$body = "There is a new ATLAS file"
$smtpServer = "consignia"
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $body)