Help answer threads with 0 replies.
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, 03: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 03:20 PM.
Old 06-11-2004, 03:42 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,667

Rep: Reputation: 217Reputation: 217Reputation: 217
You can use the 'mail' utility.
Old 06-11-2004, 04: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 12:12 AM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 06:33 PM
Sendmail question How to send email from command line anjaan Linux - General 1 07-08-2004 08:20 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 09:26 AM
trying to send internet email from a command it possible rutman Linux - Newbie 8 06-26-2004 02:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 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