LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   command-line email client (https://www.linuxquestions.org/questions/linux-general-1/command-line-email-client-44948/)

ixion 02-11-2003 11:23 AM

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?

stickman 02-11-2003 11:33 AM

This works pretty well for text files:
mail -s subject user@domain < file

ixion 02-11-2003 01:46 PM

it doesn't seem to work for me. Does it use SendMail? I have all my SendMail's uninstalled for security..

nxny 02-11-2003 02:25 PM

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)

PTBmilo 02-11-2003 02:28 PM

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


All times are GMT -5. The time now is 11:53 AM.