Created
April 23, 2017 08:05
-
-
Save amritanshu-pandey/b064b534c6e7e39f93a26236076b7d5e to your computer and use it in GitHub Desktop.
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
Send-MailMessage ` | |
-To "test_recipient@gmail.com" ` | |
-CC "test_cc@gmail.com" ` | |
-Subject "Hello from Poweshell" ` | |
-Body "Hello Receiver" ` | |
-SmtpServer "smtp.gmail.com" ` | |
-From "test_sender@gmail.com" ` | |
-Port 587 ` | |
-UseSsl ` | |
-Credential (Import-Clixml .\credentials.xml) ` | |
-Attachments "mail.ps1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment