ps mail
gistfile1.txt
$fromEmail = "Server <[email protected]>"
$smtpServer = "10.10.10.10"
$subject = "Random Subject"
$body = "Random Body"
$emailTo = "Myles <[email protected]>", "Bill <[email protected]>", "John <[email protected]>"
send-mailmessage -to $emailTo -from "$fromEmail" -subject "$subject" -body "$body" -smtpServer "$smtpServer" -BodyAsHtml
No comments yet.