- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX mail client
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
01-31-2003 03:30 PM
01-31-2003 03:30 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:43 PM
01-31-2003 03:43 PM
Re: HP-UX mail client
You can use "mailx" for this purpose. For multiple files, enclose them in a single sub shell.
(uuencode file1 file1; uuencode file2 file2; uuencode file3 file3)|mailx -s "Attachments" your_id@yourdomain.com
or you can pipe them to a single file and then send that file as attachment
uuencode file1 file1 > attach
uuencode file2 file2 >> attach
uuencode file3 file3 >> attach
cat attach| mailx -s "attachments" your_id@yourdomain.com
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:49 PM
01-31-2003 03:49 PM
Re: HP-UX mail client
Script to build the following file as to your preference, when finished execute the file.
mailx -m -s "Some Title" someone @somewhere.com <<-END
`ux2dos /path_to_attachment_file/file.name | uuencode Attachment_file_name.txt`
path_to_attachment_file2/file2.name | uuencode Attachment_file_name2.txt`
END
If you desire a body to the email as well, add a `cat file_contaning_body_message"
Regards,
DL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:50 PM
01-31-2003 03:50 PM
SolutionWithin the body of your email add this:
------------------------------------
This is my text. How are you?
[include /tmp/myattach application/octet-stream base64]
This is some more text in the middle.
[include /tmp/myexcel.xls application/ms-excel base64]
This is a closing message in the email.
----------------------------------------
That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method.
Then to use it from a script:
elm -s "My Subject" user@mailserver.com < myletter
Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory
under the sender's home directory becuase unlike the interactive version of elm, the command-line version will not create a .elm directory automatically.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:52 PM
01-31-2003 03:52 PM
Re: HP-UX mail client
File was missing ux2dos on second entry.
`ux2dos path_to_attachment_file2/file2.name | uuencode Attachment_file_name2.txt`
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 04:48 PM
01-31-2003 04:48 PM
Re: HP-UX mail client
Thank you all for your valuable inputs. I will try them.
Regards..
Girija
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 04:57 PM
01-31-2003 04:57 PM
Re: HP-UX mail client
http://hpux.cict.fr/hppd/hpux/Networking/Mail/pine-4.32/