RE: [opensuse] using 'mail' from command line.
Using 'mail' in the command line and I can't find how to make it non-interactive. I want to just send the mail without it needing me to use a '.' (dot) to send the message. What is the correct syntax to send this on its way? I'd like to insert this into a script.
Use a pipe, with the contents of the email. I have used that in a script. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hello, I am trying to recall how I made this work, but I just can't recall. What is the syntax to get the 'mail' command to send mail without interaction? #mail -s "test" someone@example.com | ????? Thank you, ~James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jun 24, 2008 at 4:19 PM, James D. Parra
I am trying to recall how I made this work, but I just can't recall.
What is the syntax to get the 'mail' command to send mail without interaction?
#mail -s "test" someone@example.com | ?????
I think what you want is: cat messagefile | mail -s "the subject" someone@somewhere.com - James W -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
james Wright pecked at the keyboard and wrote:
On Tue, Jun 24, 2008 at 4:19 PM, James D. Parra
wrote: I am trying to recall how I made this work, but I just can't recall.
What is the syntax to get the 'mail' command to send mail without interaction?
#mail -s "test" someone@example.com | ?????
I think what you want is:
cat messagefile | mail -s "the subject" someone@somewhere.com
- James W
or you can use: #mail -s "test" someone@example.com < messagefile -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
James D. Parra
-
james Wright
-
Ken Schneider