gistfile1.txt

$fromEmail = “Server
$smtpServer = “10.10.10.10”
$subject = “Random Subject”
$body = “Random Body”

$emailTo = “Myles “, “Bill “, “John

send-mailmessage -to $emailTo -from “$fromEmail” -subject “$subject” -body “$body” -smtpServer “$smtpServer” -BodyAsHtml

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.

Leave a Reply