command-line email sending
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. |
well, you'll obviously have to do mime-encoding yourself,
but after that use sendmail... Cheers, Tink |
where should I read up on mime-encoding? What is it?! ;)
|
man -k mime :P
Cheers, Tink |
Re: command-line email sending
Quote:
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. Good luck... Rick |
awesome! Thanks for the suggestion!
I'm anxious to see what you come up with :) |
Quote:
Hope that'll help... Rick |
Awesome!!! Thank you so much!!!
|
I've been working with it on the Suse 8.0 server we have, but keep getting this error when using '/dev/null':
Error sending message, child exited 65 (Data format error.). Could not send the message. Is the Suse system not setup properly?? edit: /dev/null does exist;) |
Quote:
[Well your solution was posted some years ago, but I just wanted to thank you :)] |
All times are GMT -5. The time now is 03:41 PM. |