Powershell + Send html-file as body
Write-Host “Sending Email”
$content = (Get-Content “d:\print.htm” | out-string)
Send-MailMessage -to “you@test.com” -subject “Print Report” -from “printer@test.com” -body $content -BodyAsHtml -SmtpServer “server”Write-Host “Finished.”
Comments are currently closed.