Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
we need to be able to send an attachment to various email addresses through rsh remotely. What would be a command-line mail program/package/etc. that will send an email with an attachment to an email address without any user input.
example: 'rsh <server> <mail program> <attachment> <emailaddress>', and with just one command line the email is off and away. Any chance of this working? I don't mind what config is involved, we just need this to work.
Distribution: Red Hat (8.0), SuSE (10.x, 11.x), Solaris (8-10), Tru64
Posts: 738
Rep:
Re: command-line email sending
Quote:
Originally posted by ixion we need to be able to send an attachment to various email addresses through rsh remotely. What would be a command-line mail program/package/etc. that will send an email with an attachment to an email address without any user input.
example: 'rsh <server> <mail program> <attachment> <emailaddress>', and with just one command line the email is off and away. Any chance of this working? I don't mind what config is involved, we just need this to work.
Mutt. It does attachments quite nicely.
Something like:
rsh server /usr/bin/mutt -s "Here's the stuff" -a attachment.file smithj@domain < /dev/null
should work. Dunno about that redirect working correctly with rsh, though. I can test it tomorrow (on a system that allows rsh). Let you know then.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.