Simple and precise lines for SMTP Test:
you can use rcpt to command for multiple recipients while smtp test is being performed using telnet session.
telnet to your smtp address you should get a reply back saying 'OK' for each command line
-------------------------------------------------
telnet 192.168.110.100 25
HELO yourdomain.com
MAIL FROM: Test@abc.com
RCPT TO: 123@abc.com
RCPT TO: 345@abc.com
DATA
Subject:((Test Email..!!))
This is an automated email.
.
QUIT
-------------------------------------------------
fyi: you will get error for 501 5.5.4 Unrecognized parameter, if you do any correction with the typed command line under telnet session. delete and backspace commands are not accepted. you have to type command without errors.
Note that the above code cannot be automated in a script as TELNET itself is a power shell. So telnet to smtp server port will take you to another console and the rest of communication commands will not work IF you make a batch file of the above code. For which the best method is to use vb script to send automated emails. Sending emails using this method can be used for alerting Admins after completion of an automated process.
you can use rcpt to command for multiple recipients while smtp test is being performed using telnet session.
telnet to your smtp address you should get a reply back saying 'OK' for each command line
-------------------------------------------------
telnet 192.168.110.100 25
HELO yourdomain.com
MAIL FROM: Test@abc.com
RCPT TO: 123@abc.com
RCPT TO: 345@abc.com
DATA
Subject:((Test Email..!!))
This is an automated email.
.
QUIT
-------------------------------------------------
fyi: you will get error for 501 5.5.4 Unrecognized parameter, if you do any correction with the typed command line under telnet session. delete and backspace commands are not accepted. you have to type command without errors.
Note that the above code cannot be automated in a script as TELNET itself is a power shell. So telnet to smtp server port will take you to another console and the rest of communication commands will not work IF you make a batch file of the above code. For which the best method is to use vb script to send automated emails. Sending emails using this method can be used for alerting Admins after completion of an automated process.
0 comments:
Post a Comment