From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Howard E. Arnold" Newsgroups: gmane.os.tru64.managers Subject: Summary: Application sending response with email Date: Fri, 24 May 2002 09:06:37 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1022244524 26950 127.0.0.1 (24 May 2002 12:48:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 24 May 2002 12:48:44 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17BEUu-00070S-00 for ; Fri, 24 May 2002 14:48:44 +0200 Original-Received: (qmail 3381 invoked by uid 5); 24 May 2002 12:49:14 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3373 invoked from network); 24 May 2002 12:49:14 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 24 May 2002 12:49:14 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GWM0018Z8Y251@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 24 May 2002 08:49:14 -0400 (EDT) Original-Received: from smtp.9netave.com (smtp.njd.xo.com [216.156.2.48]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GWM007G48XONT@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 24 May 2002 08:49:01 -0400 (EDT) Original-Received: from arnoldh (host66.209-113-184.oem.net [209.113.184.66]) by smtp.9netave.com (8.9.3/8.8.8) with ESMTP id JAA14648 for ; Fri, 24 May 2002 09:00:10 -0400 (EDT) Original-To: Tru64-Unix-Managers X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:315 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:315 Thanks to all that reply. It seems that it is easier to do than I originally thought. I got many responses to do: mailx -s "subject" -r user@mydomain.com user@otherdomain.com < text.file Which is what I used to test and it work fine. Now I have to figure out how to send an attachment.. Thanks to everyone that responded. Original question: I have an application that writes text files as confirmation letters and I would like to write a script to send them out. I was planning on using the following: telnet mail.myisp.com 25 <<_EOF_ EHLO me.atmydomain.com MAIL FROM: RCPT To: DATA quit _EOF_ What I don't know is how to input the text file into this message. I have tried to redirect it using DATA < file.txt, but that didn't work. Should or could something like this work. Howard Arnold Consultant Engineer Email: arnoldh@celerent.com Phone: (603)685-6060 ext 206