c2ssupport
Technical User
I want to automate a manual SMTP session with PERL or shell scripting. I do not have Net:Telnet. I am totally lost. Any help is GREATLY appreciates. Here is what I want to do:
uadmin.rpswchas01% telnet 111.222.333.444 25
Trying 111.222.333.444...
Connected to 111.222.333.444.
Escape character is '^]'.
220 usdfdf2 Hello usdasdsd.foobar.com Tue, 15 Nov 2005 09:48:12 -0600
helo
250 udsafdfdf Hello [192.61.158.16]
MAIL From: user@foobar.com
250 user@foobar.com: Sender Ok
RCPT to: boonie@microsoft.com
250 boonie@microsoft.com: Recipient Ok
data
354 us34342: Send data now. Terminate with "."
this is a test 1
2
3
.
250 usasdfasdf2: Message accepted for delivery
quit
221 usasdsdf2 closing connection. Goodbye!
Connection to 111.222.333.444 closed by foreign host.
uadmin.rpswchas01% telnet 111.222.333.444 25
Trying 111.222.333.444...
Connected to 111.222.333.444.
Escape character is '^]'.
220 usdfdf2 Hello usdasdsd.foobar.com Tue, 15 Nov 2005 09:48:12 -0600
helo
250 udsafdfdf Hello [192.61.158.16]
MAIL From: user@foobar.com
250 user@foobar.com: Sender Ok
RCPT to: boonie@microsoft.com
250 boonie@microsoft.com: Recipient Ok
data
354 us34342: Send data now. Terminate with "."
this is a test 1
2
3
.
250 usasdfasdf2: Message accepted for delivery
quit
221 usasdsdf2 closing connection. Goodbye!
Connection to 111.222.333.444 closed by foreign host.