Created
November 24, 2014 13:21
-
-
Save constructor-igor/c36dff225128e118d08f to your computer and use it in GitHub Desktop.
Sending email via Outlook (powershell)
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
$Outlook = New-Object -ComObject Outlook.Application | |
$Mail = $Outlook.CreateItem(0) | |
$Mail.To = "[email protected]" | |
$Mail.Subject = "Action" | |
$Mail.Body ="Pay rise please" | |
$Mail.Send() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment