Created
November 5, 2014 18:34
-
-
Save tripflex/7f363be1297e53fad1d1 to your computer and use it in GitHub Desktop.
ps mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment