Skip to content

SDF-REP-05 โ€” Send-MailMessage

Purpose:
To send PowerShell-generated reports via email for remote sharing or alerts.


๐Ÿงญ Script Example

Send-MailMessage -To "recipient@example.com" -From "me@example.com" -Subject "CPU Report" -Body "See attached report" -SmtpServer "smtp.example.com" -Attachments "cpu-usage.csv"

๐Ÿ“ Output

  • Format: Email with attachment
  • Use: Remote delivery of audit or performance reports

๐Ÿง  Reflection

  • Was the email received successfully?
  • Did the attachment open correctly?