Addressed a mail into a Powershell script could be useful to forward some logs or other informations needed for a administration team or management team.
See below example whithout attached file :
Have a look and try to adapt it for your needs.
Make a script with simple sentence and clear message to communicate.
$smtpserver = "SMTP server existing in your work environnement (use alias or fqdn)"
$destination = "administrator@admin.com"
$smtp = New-Object Net.Mail.SmtpClient($smtpserver)
$emailFrom = "address@admin.com"
$subject = "Subeject of your Message"
$body = "Add your message and some variables if needed."
$smtp.send($emailFrom,$user,$subject,$body)