mail via command line
Hi, How can I send an email via the command line? Not with mutt or anything, just "command from to subject body". Regards, Mark
man mail Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
-- ---------------------------------------------------------------------- Patrick Greenwell, Support Account Manager, Fortune 500 SUSE LINUX, 1100 Sansome St., San Francisco, CA, 94111 T: +1 415 591 6607 - Cell: +1 510 499 7896 F: +1 510 591 6619 - patrick@suse.com ----------------------------------------------------------------------
Mark Janssen wrote:
I've tried that but I cant get out of that...
Patrick Greenwell wrote:
man mail
Then you haven't read the man page. -- ---------------------------------------------------------------------- Patrick Greenwell, Support Account Manager, Fortune 500 SUSE LINUX, 1100 Sansome St., San Francisco, CA, 94111 T: +1 415 591 6607 - Cell: +1 510 499 7896 F: +1 510 591 6619 - patrick@suse.com ----------------------------------------------------------------------
On Thu, 05 Feb 2004 21:47:25 +0100
Mark Janssen
How can I send an email via the command line?
man mail Charles -- Your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum)
Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
mail -s "Some subject -r doofus@here.com recipient@somewhere.com Note that the '-r from@e-mail' is not required. Ken
Aha the ctrl+D is what i forgot. How can I specify the body message via the command?? Thanks alot. Regards, mark Ken Hughes wrote:
Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
mail -s "Some subject -r doofus@here.com recipient@somewhere.com
Note that the '-r from@e-mail' is not required.
Ken
Ken Hughes wrote:
Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
mail -s "Some subject -r doofus@here.com recipient@somewhere.com
Sorry...just realized I left the closing " off of the -s parameter, meaning some non-man page reading newbie may try this get foundered on the rocks... Ken
Ken Hughes wrote:
Ken Hughes wrote:
Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
mail -s "Some subject -r doofus@here.com recipient@somewhere.com
Sorry...just realized I left the closing " off of the -s parameter, meaning some non-man page reading newbie may try this get foundered on the rocks...
Ken
im not stupid enuf to copy and paste everything....
On Thu, 05 Feb 2004 21:47:25 +0100 Mark Janssen wrote:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
Regards,
Mark
bash>$ mail
Op donderdag 5 februari 2004 21:47, schreef Mark Janssen:
Hi,
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
echo "read the man pages" | mailx -s "Patrick says" mail@system.world -- Richard Bos Without a home the journey is endless
The Thursday 2004-02-05 at 21:47 +0100, Mark Janssen wrote:
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
cat somefile | nail \ -s "subject" \ -b "bcc addres" -r "remitent" "Toaddress" -a "attach_file" "nail" is "mailx" in SuSE, and "mail" is a link to "nail" (as of SuSE 8.2). Exit by typing "." on an empty line. -- Cheers, Carlos Robinson
On Thu, 2004-02-05 at 22:36, Carlos E. R. wrote:
The Thursday 2004-02-05 at 21:47 +0100, Mark Janssen wrote:
How can I send an email via the command line? Not with mutt or anything, just "command from to subject body".
cat somefile | nail \ -s "subject" \ -b "bcc addres" -r "remitent" "Toaddress" -a "attach_file"
"nail" is "mailx" in SuSE, and "mail" is a link to "nail" (as of SuSE 8.2). Exit by typing "." on an empty line.
But only if you've configured postfix (or sendmail, depending on what you're running). nail (mail) depends on it. I learned this the hard way about three weeks ago.
-- Cheers, Carlos Robinson -- Daryl Lee Open the Present, it's a Gift.
The Thursday 2004-02-05 at 23:01 -0500, Daryl Lee wrote:
"nail" is "mailx" in SuSE, and "mail" is a link to "nail" (as of SuSE 8.2). Exit by typing "." on an empty line.
But only if you've configured postfix (or sendmail, depending on what you're running). nail (mail) depends on it. I learned this the hard way about three weeks ago.
But of course! Any Linux system is supposed to have a mail server working, otherwise many things don't work. For example, if a cron job fails, it will email the owner... and this will not work. When Yast installs packages, sometimes the root is emailed news he should know about it... -- Cheers, Carlos Robinson
Sat, 07 Feb 2004, by robin1.listas@tiscali.es:
The Thursday 2004-02-05 at 23:01 -0500, Daryl Lee wrote:
"nail" is "mailx" in SuSE, and "mail" is a link to "nail" (as of SuSE 8.2). Exit by typing "." on an empty line.
But only if you've configured postfix (or sendmail, depending on what you're running). nail (mail) depends on it. I learned this the hard way about three weeks ago.
But of course! Any Linux system is supposed to have a mail server working, otherwise many things don't work. For example, if a cron job fails, it will email the owner... and this will not work. When Yast installs packages, sometimes the root is emailed news he should know about it...
Depends on what you call a 'mail server' Normally it is sufficient to have the 'sendmail' binary available, as that is what programs like cron, {sn,xm}ail etc use. It only requires the sendmail (dropin) to be correctly configured for the local mail delivery agent, like e.g. procmail, or for a direct drop-off in /var/spool/mail/$USER. I never came across a Linux distro were this didn't work out-the-box. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SUSE 8.2 Kernel k_athlon-2.4.20 See headers for PGP/GPG info.
participants (11)
-
Anders Johansson
-
Carlos E. R.
-
Charles Philip Chan
-
Daryl Lee
-
Howell Luther
-
James Knott
-
Ken Hughes
-
Mark Janssen
-
Patrick Greenwell
-
Richard Bos
-
Theo v. Werkhoven