gistfile1.txt
$fromEmail = “Server
$smtpServer = “10.10.10.10”
$subject = “Random Subject”
$body = “Random Body”
$emailTo = “Myles
send-mailmessage -to $emailTo -from “$fromEmail” -subject “$subject” -body “$body” -smtpServer “$smtpServer” -BodyAsHtml
gistfile1.txt
$fromEmail = "Server <server@mydomain.com>"
$smtpServer = "10.10.10.10"
$subject = "Random Subject"
$body = "Random Body"
$emailTo = "Myles <myles@myles.com>", "Bill <bill@bill.com>", "John <john@john.com>"
send-mailmessage -to $emailTo -from "$fromEmail" -subject "$subject" -body "$body" -smtpServer "$smtpServer" -BodyAsHtml
No comments yet.