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?
|
This works pretty well for text files:
mail -s subject user@domain < file |
it doesn't seem to work for me. Does it use SendMail? I have all my SendMail's uninstalled for security..
|
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) |
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. |