Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-05-2003, 10:21 AM
|
#1
|
|
Member
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166
Rep:
|
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.
|
|
|
|
03-05-2003, 01:12 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
well, you'll obviously have to do mime-encoding yourself,
but after that use sendmail...
Cheers,
Tink
|
|
|
|
03-05-2003, 01:43 PM
|
#3
|
|
Member
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166
Original Poster
Rep:
|
where should I read up on mime-encoding? What is it?! 
|
|
|
|
03-05-2003, 01:45 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
man -k mime :P
Cheers,
Tink
|
|
|
|
03-05-2003, 11:28 PM
|
#5
|
|
Member
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2), Solaris (8-10), Tru64
Posts: 800
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.
Good luck...
Rick
|
|
|
|
03-06-2003, 11:16 AM
|
#6
|
|
Member
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166
Original Poster
Rep:
|
awesome! Thanks for the suggestion!
I'm anxious to see what you come up with 
|
|
|
|
03-06-2003, 06:14 PM
|
#7
|
|
Member
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2), Solaris (8-10), Tru64
Posts: 800
Rep:
|
Quote:
Originally posted by ixion
I'm anxious to see what you come up with
|
Worked like a charm... even the redirection from /dev/null.
Hope that'll help...
Rick
|
|
|
|
03-07-2003, 06:33 AM
|
#8
|
|
Member
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166
Original Poster
Rep:
|
Awesome!!! Thank you so much!!!
|
|
|
|
03-07-2003, 06:55 AM
|
#9
|
|
Member
Registered: Dec 2002
Location: USA
Distribution: SuSE, CentOS, Gentoo
Posts: 166
Original Poster
Rep:
|
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 
Last edited by ixion; 03-07-2003 at 06:56 AM.
|
|
|
|
08-01-2008, 06:46 AM
|
#10
|
|
LQ Newbie
Registered: Jan 2008
Location: Sant Quinti de Mediona
Distribution: Gentoo
Posts: 24
Rep:
|
Quote:
Originally Posted by rnturn
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.
Good luck...
Rick
|
Thank you! this is what I was looking for 
[Well your solution was posted some years ago, but I just wanted to thank you  ]
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|