Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save csdear/752e9728f404a979d4463eabaec451ee to your computer and use it in GitHub Desktop.
Save csdear/752e9728f404a979d4463eabaec451ee to your computer and use it in GitHub Desktop.
Test SMTP server by sending a email through powershell
PS C:\Users\admin> Send-MailMessage -SMTPServer appmail -To johndoe@gmail.com -From blog@spamsource.com -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