Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-11-2003, 11:23 AM   #1
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Rep: Reputation: 30
command-line email client

I need to send a file through email from the command line fully unattended. This most likely will be run on our Linux Server using 'rsh' from a remote UNIX box. Any ideas?
Old 02-11-2003, 11:33 AM   #2
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
This works pretty well for text files:
mail -s subject user@domain < file
Old 02-11-2003, 01:46 PM   #3
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
it doesn't seem to work for me. Does it use SendMail? I have all my SendMail's uninstalled for security..
Old 02-11-2003, 02:25 PM   #4
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
yes. mail tries to hand it over to the sendmail daemon. So if you dont have it installed and running, it wont work.

If you are worried about sendmail security issues, you may want to try other mail transport agents such as postfix or qmail. Of course - addressing your original concern - that would change the command line. (With qmail, it is qmail-inject for instance)
Old 02-11-2003, 02:28 PM   #5
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
It uses the 'mail' command, which is going to need some sort of mta (mail transport agent) such as Sendmail or Qmail.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command-line email sending ixion Linux - Software 9 08-01-2008 06:46 AM
need a command line email program paperdiesel Linux - Software 10 09-05-2006 06:32 AM
send email from command line djionel82 Programming 6 11-29-2005 12:12 AM
command-line email success darthtux Member Success Stories 4 08-31-2003 11:57 PM
command line email with attachments??? crickett Linux - Software 1 06-24-2003 08:47 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:27 PM.

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