- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Attach files using elm or mailx
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:02 AM
12-05-2001 07:02 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:05 AM
12-05-2001 07:05 AM
Re: Attach files using elm or mailx
Follow this thread. Should be exactly what you are looking for.
Good Luck,
C
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x62f2c6af36b7d5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:08 AM
12-05-2001 07:08 AM
Re: Attach files using elm or mailx
#!/bin/sh
MAILFILE=/tmp/mailtemp
HEADER=/tmp/header
clear
echo "Enter the email address: \c"
read TO
echo "Enter the Cc email address: \c"
read CC
echo "Enter the Bcc email address: \c"
read BCC
echo "Enter the Subject: \c"
read SUBJECT
echo "Enter the Body: \c"
read BODY
echo "Enter the filename of the attachment: \c"
read DATAFILE
echo To: $TO >> $HEADER
echo Cc: $CC >> $HEADER
echo Bcc: $BCC >> $HEADER
echo Subject: $SUBJECT >> $HEADER
echo "" >> $HEADER
echo "" >> $HEADER
echo $BODY >> $HEADER
echo "" >> $HEADER
cat $HEADER > $MAILFILE
uuencode $DATAFILE $DATAFILE.doc >> $MAILFILE
cat $MAILFILE | /usr/lib/sendmail -t
rm $MAILFILE
rm $HEADER
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:08 AM
12-05-2001 07:08 AM
Re: Attach files using elm or mailx
uuencode file |mailx -s "The file" email_id
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:13 AM
12-05-2001 07:13 AM
Re: Attach files using elm or mailx
uuencode file file| mailx -s "file " email_id
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:25 AM
12-05-2001 07:25 AM
Re: Attach files using elm or mailx
Try these links.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cfde2ec2004ccc334f/screen=ckiDisplayDocument?docId=200000052199391
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cfde2ec2004ccc334f/screen=ckiDisplayDocument?docId=200000019779501
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cfde2ec2004ccc334f/screen=ckiDisplayDocument?docId=200000054887756
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 08:36 AM
12-05-2001 08:36 AM
Re: Attach files using elm or mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 09:17 AM
12-05-2001 09:17 AM
Re: Attach files using elm or mailx
[inlcude filename text/plain quoted/printable]
where of course filename is your file. The include file I will name something like file_email and then use the command:
mailx tracey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 09:18 AM
12-05-2001 09:18 AM
Re: Attach files using elm or mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 10:28 AM
12-05-2001 10:28 AM
Re: Attach files using elm or mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 10:44 AM
12-05-2001 10:44 AM
Re: Attach files using elm or mailx
1) go into elm
2) m)ail a message, fill out the to, subject, etc.
3) you will then go into vi, where you can draft a message, wq out when done.
4) you will then see a set of options at the bottom of your screen, among those is a)ttachments, select it.
5) you will go to a screen where you have more options at the bottom, among those is a)dd, type a and at filename:, enter the path of the filename and hit return and then hit return again to get the menu selections mentioned above. If you are done, choose q)uit.
6) You should be back to the menus dscribed in #4, if you are ready to send, choose s)end.
This seems pretty long and drawn out, but it has worked for me with things I have wanted to send. Give it a try, what have you got to lose?
Good luck
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 10:46 AM
12-05-2001 10:46 AM
Re: Attach files using elm or mailx
There are a couple ways to do this ..
You can use uuencode (as was mentioned)
You can use a third party..some folks like MPack
But my personal favorite is using the include statement..which is where Craig's thread will point you.
I've attached a script I wrote awhile back for myself to run a bunch of performance reports for a vendor and email all those reports as attached files...Maybe it would give you a couple ideas..
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 10:49 AM
12-05-2001 10:49 AM
Re: Attach files using elm or mailx
I use following command to get file only in attachment in outlook as well as in lotus notes.
#/usr/bin/uuencode file file |mailx -m -s "The Subject" your_email_id
Thanks.
Prashant.