Last active
August 9, 2016 16:19
-
-
Save csdear/752e9728f404a979d4463eabaec451ee to your computer and use it in GitHub Desktop.
Test SMTP server by sending a email through 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
PS C:\Users\admin> Send-MailMessage -SMTPServer appmail -To [email protected] -From [email protected] -Subject "This is a test email" -Body "Hi dude, this is a test email sent via PowerShell" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment