The GoTo Community is currently experiencing some technical issues affecting new posts and comments. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
Rob H
17 years agoRetired GoTo Contributor
Rescue Script Repository Thread- Share your scripts
Welcome to the new LogMeIn Community. One of the things that we would like to foster is the sharing of lots of great ideas and neat tips and tricks. I thought that I would get the ball rolling by pub...
Sven
17 years agoVisitor
I use this to see if the clients ISP is blocking port 25 (smtp traffic). You will have to change SMTPSERVER.COM to a server you know accepts SMTP traffic. You will also need to remove the space after the @ symbol and try to use a known account. Either way it probably won't finish, but as long as you receive something other than this "Connecting To SMTPSERVER.COM...Could not open connection to the host, on port 25: Connect failed" back it is probably open.
@echo off
rem ---------------------------
rem - Port 25 Test -
rem ---------------------------
echo Testing Port 25:
telnet SMTPSERVER.COM 25
EHLO SMTPSERVER.COM
MAIL FROM: TEST@ SMTPSERVER.COM
RCPT TO: TESTER@ SMTPSERVER.COM
DATA
Subject: Test
This is a test message you will not see a response from this command.
.
QUIT
echo --------------------------------------------
exit
chazandchaz
14 years agoNew Contributor
You cannot pass text into a telnet session from a batch/cmd file
The only command necessary for your test:
telnet SMTPSERVER.COM 25
You will never be able to actually send a test email using this script.