Skip to content

Instantly share code, notes, and snippets.

@adamfortuno
Created December 14, 2018 20:50
Show Gist options
  • Save adamfortuno/06303d1c8191dd03f5e4782c2ff3d27c to your computer and use it in GitHub Desktop.
Save adamfortuno/06303d1c8191dd03f5e4782c2ff3d27c to your computer and use it in GitHub Desktop.
Secure Mail Transmission via TLS 1.2 (Powershell)
##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 "..."
@adamfortuno
Copy link
Author

adamfortuno commented Dec 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment