Quick Note on sending an email with just using putty or telnet
putty -raw -P 25 192.168.7.251
HELO home.steveborba.com
MAIL FROM: steve@steveborba.com
RCPT TO: steve@steveborba.com
DATA
From: "Someone"
To: "Myself"
Subject: Testing email - 1
Steve,
Testing this email thing.
Thank you,
Steve
.
quit
or with authentication and powershell
$mailParams = @{
From = "steve@steveborba.com"
To = "somewhere@else.com"
Subject = "SMTP Authentication Test"
Body = "This is a test email to verify PowerShell SMTP authentication."
SmtpServer = "mx1-us1.ppe-hosted.com" # Change to your SMTP host
Port = 587 # Common ports: 587 (TLS), 465 (SSL), or 25
Credential = Get-Credential
UseSsl = $true # Required for secure connections (TLS/SSL)
}
Send-MailMessage @mailParams