Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-11-2004, 04:18 PM   #1
LQ Newbie
Registered: Jun 2004
Location: Kentucky
Distribution: Redhat 7.2
Posts: 9

Rep: Reputation: 0
Trying to send an email usng Pine without user keystrokes

I am able to email the outside world from my Linux Server using Pine with no problem. What I am trying to do is, I am trying to write a script that will email an order acknowledgment created on our system to our customers. I need this to be done in the Command line so my script can execute this function with out user intervention.
If type in " pine -attach /usr/preman/ACK00262" then the screen pops up wanting a "Cc:" and a text in the message. I don't need this I just want the file I specified to be emailed to the customer.
Is there anyway possible for this to be done bypassing the CC and the body of the message, and without hitting the ctrlX to send the message.
I have tried several things using different command but to no avail.
Please if you can advise this "newbie" would really appreciate!

Last edited by rutman; 06-11-2004 at 04:20 PM.
Old 06-11-2004, 04:42 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,547

Rep: Reputation: 160Reputation: 160
You can use the 'mail' utility.
Old 06-11-2004, 05:34 PM   #3
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
mail -s "subject" < /usr/preman/ACK00262

That should do it...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
send email from command line djionel82 Programming 6 11-29-2005 01:12 AM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 07:33 PM
Sendmail question How to send email from command line anjaan Linux - General 1 07-08-2004 09:20 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 10:26 AM
trying to send internet email from a command it possible rutman Linux - Newbie 8 06-26-2004 03:19 AM

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration