Skip to content

Instantly share code, notes, and snippets.

@mrzcn
Created December 13, 2020 10:15
Show Gist options
  • Save mrzcn/da87c91ccc0e3402aa24d19f08c6223f to your computer and use it in GitHub Desktop.
Save mrzcn/da87c91ccc0e3402aa24d19f08c6223f to your computer and use it in GitHub Desktop.
Example CMD Commands for Testing a SMTP/Mail server via Telnet
C:\Windows\System32> telnet
Microsoft Telnet> set localecho
Microsoft Telnet> set logfile c:\TelnetTest.txt
Microsoft Telnet> OPEN 10.10.10.19 465
ehlo
MAIL FROM: [email protected]
RCPT TO: [email protected] NOTIFY=success,failure
DATA
Subject: test
   
This is a test message.
.
250 2.6.0 <[email protected]> [InternalId=5111011082268, Hostname=mail1.fabrikam.com] Queued mail for delivery
QUIT
221 2.0.0 Service closing transmission channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment