![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| telnet smtp script | bulkbiz | Shell Programming and Scripting | 4 | 12-22-2008 07:08 AM |
| Webpage to Telnet via Perl and Expect: Telnet problem? | jondo | Shell Programming and Scripting | 1 | 07-22-2008 12:35 AM |
| telnet smtp and email in batch | ejaggers | UNIX for Dummies Questions & Answers | 1 | 03-06-2008 05:22 PM |
| Automating telnet and ftp | sendhilmani123 | Shell Programming and Scripting | 2 | 04-25-2006 05:37 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Automating mailing via telnet to smtp
Hi,
I am trying to write a ksh script to send an attachment via telnet to an SMTP server. I'm using MKS Toolkit. mail, mailx, sendmail, nc are not working on the server where I have MKS Toolkit installed. If I type the following from the command prompt I receive an email: Code:
telnet x.com 25 helo a mail from:Scripts@x.com rcpt to:i@g.com data test . Input: Code:
(sleep 1 echo 'helo a' sleep 1 echo 'mail from:<scripts@x.com>' sleep 1 echo "rcpt to:<i@g.com>" sleep 1 echo "data test" sleep 1 echo "." sleep 1 echo "quit") | telnet x.com 25 Code:
Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' Microsoft Telnet> echo: writing: The pipe is being closed. echo: writing: The pipe is being closed. echo: writing: The pipe is being closed. echo: writing: The pipe is being closed. echo: writing: The pipe is being closed. echo: writing: The pipe is being closed. $ Please help! Thanks in advance! Last edited by pludi; 4 Weeks Ago at 04:20 AM.. Reason: code tags, please... |
| Bookmarks |
| Tags |
| ksh, mks toolkit, smtp, telnet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|