Skip to content

Instantly share code, notes, and snippets.

View mattrhoades-codes's full-sized avatar

mattrhoades-codes

View GitHub Profile
@jpoehls
jpoehls / smtp-test.ps1
Created December 14, 2011 17:26
SMTP Test Script (in PowerShell)
$smtp = New-Object System.Net.Mail.SmtpClient
$smtp.Host = "127.0.0.1"
$smtp.Port = 587
$creds = New-Object System.Net.NetworkCredential
# $currentCreds = Get-Credential
$creds.Domain = ""
$creds.UserName = "my_user" # $currentCreds.UserName
$creds.Password = "my_pass" # $currentCreds.GetNetworkCredential()