Created
December 14, 2018 20:50
-
-
Save adamfortuno/06303d1c8191dd03f5e4782c2ff3d27c to your computer and use it in GitHub Desktop.
Secure Mail Transmission via TLS 1.2 (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
##Secure message transmission with TLS 1.2 (default is 1.0) | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
Send-Mailmessage -smtpServer ... -Port ... -from "me@home.com" -to "you@home.com" -subject "..." -body "..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pulled this from the article Why does Send-MailMessage fail to send using STARTTLS over Port 587.