- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sending email with a file attachment
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
07-22-2002 01:35 PM
07-22-2002 01:35 PM
thanks in advance,
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 01:43 PM
07-22-2002 01:43 PM
SolutionHere is fairly simple method for sending one or multiple files.
##############################################
for e in `echo file1 file2 file3`
do
uuencode $e $e.txt
done|mailx -m -s "mymail" username@domain.com
##############################################
Change ".txt" to the proper format of the file e.g. .xls for excel, .doc for word etc
You can use mailx, sendmail, just change the command. Have a look at the various man pages for additional help.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 01:43 PM
07-22-2002 01:43 PM
Re: sending email with a file attachment
you can use:
uuencode file file.txt | mailx -m me@here.com
the -m is for mime encoding (I think).
If it's a text file, I usually give it an extension that can be opened from outlook, or I go to whoever it's being mailed to, create a new extnesion that uses wordpad to open it up.
Don't forget, if it's plain text you can also use ux2dos before uuencoding it so it's got dos/win EOL characters.
Hope this helps.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 01:46 PM
07-22-2002 01:46 PM
Re: sending email with a file attachment
1) sendmail (docid=KBRC00000747)
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000048039408
2) mailx (docid=UMAILKBRC00007802)
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058669768
Hope they help ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 01:55 PM
07-22-2002 01:55 PM
Re: sending email with a file attachment
Simply include the following syntax in your mail textfile (e.g) my_message
-----------------
This is some sample text.
[include myfile1 application/octet-stream base64]
This is some more stuff.
[include myfile2 application/octet-stream base64]
That's all folks
------------------
Then, elm -s "Sample Subject" someuser@xxx.com < my_message
The only requirement is that you must first create a .elm directory in the sender's home directory; the command-line version will not automatically create the .elm directory unlike the interactive version of elm. The above will attach myfile1 and myfile2. You can play with the application part to suit your needs (e.g. ms-excel). This makes a nice way to do multiple attachments.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:32 PM
07-22-2002 06:32 PM
Re: sending email with a file attachment
I do a mailx -s "title" "email address" < "file attachment"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 07:00 AM
07-23-2002 07:00 AM
Re: sending email with a file attachment
Pipe the archve to mail as the message body.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 07:03 AM
07-23-2002 07:03 AM
Re: sending email with a file attachment
There have been many posts on this in the forum. Please search for "attachment".
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 07:23 AM
07-23-2002 07:23 AM
Re: sending email with a file attachment
http://my1.itrc.hp.com/cm/QuestionAnswer/0,,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
http://my1.itrc.hp.com/cm/QuestionAnswer/1,,0xdf44c4c76f92d611abdb0090277a778c,00.html
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 05:13 AM
07-24-2002 05:13 AM
Re: sending email with a file attachment
http://home.clara.net/dwotton/unix/mail_files.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 07:45 AM
07-24-2002 07:45 AM
Re: sending email with a file attachment
following:
ux2dos YourDocument|uuencode YourDocument.txt|mailx -m -s "Here is your text document"
email@domain.com