Last active
November 26, 2018 17:03
-
-
Save dapacruz/8a49c4018b2a21f08bec4dc8c59f20b2 to your computer and use it in GitHub Desktop.
Send Email From PowerShell
This file contains hidden or 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
| $params = @{ | |
| To = 'user@domain.com' | |
| From = 'test@client.com' | |
| Subject = 'Test Alert' | |
| Body = ' ' | |
| SmtpServer = 'smtp-relay.gmail.com' | |
| UseSsl = $true | |
| } | |
| Send-MailMessage @params |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment