- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Use of sendmail and uuencode
Operating System - HP-UX
1823986
Members
4583
Online
109667
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-18-2000 12:12 PM
тАО07-18-2000 12:12 PM
Use of sendmail and uuencode
Hello.
I've been working with uuencode and mailx and I've used it with mailx to insert a file to a mail item with the next commands:
$uuencode file.txt file.txt >> item
$cat item | mailx -s 'subject' recipient@maildomain
where item contains the message text.
It works fine with our mail system, SoftArc First Class, but with other mail like yahoo.com and others, the file attached appears at the bottom of the text message in MIME format, not like and attach file.
I have to send mail to many mail clients and I want to know if there is a method to attach files that can be read by the major number of them.
Thanks for your responses.
Bye.
Gabriel
I've been working with uuencode and mailx and I've used it with mailx to insert a file to a mail item with the next commands:
$uuencode file.txt file.txt >> item
$cat item | mailx -s 'subject' recipient@maildomain
where item contains the message text.
It works fine with our mail system, SoftArc First Class, but with other mail like yahoo.com and others, the file attached appears at the bottom of the text message in MIME format, not like and attach file.
I have to send mail to many mail clients and I want to know if there is a method to attach files that can be read by the major number of them.
Thanks for your responses.
Bye.
Gabriel
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:19 PM
тАО07-18-2000 01:19 PM
Re: Use of sendmail and uuencode
Are you sending binary files? That's really the only reason to use uuencode or base64 (MIME) encoding.
If you're simply sending ASCII text data (per your example), you should be able to run
cat text.txt | mailx -s subject user@company.com
If you're simply sending ASCII text data (per your example), you should be able to run
cat text.txt | mailx -s subject user@company.com
"Hope springs eternal."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:48 PM
тАО07-18-2000 01:48 PM
Re: Use of sendmail and uuencode
Hi !
I think the problem is that mailx always adds MIME-headers when not using the "-m" Option.
Try this :
(
echo "This mail contains a uuencoded attachment ..."
uuencode file.txt file.txt
) | mailx -m -s 'subject' user@host
Hope it helps,
schneck
I think the problem is that mailx always adds MIME-headers when not using the "-m" Option.
Try this :
(
echo "This mail contains a uuencoded attachment ..."
uuencode file.txt file.txt
) | mailx -m -s 'subject' user@host
Hope it helps,
schneck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 06:48 AM
тАО08-07-2000 06:48 AM
Re: Use of sendmail and uuencode
Well if you want to just send a file as part of the message,
than any of the other responses will work just fine.
BUT...if your trying to attach a file and send the file via
sendmail as an attachment than you can do this also.
First make sure you at least have Elm 2.4 on your box,
and my example is for
a HPUX 10.2 (you need MIME capability) so be sure you
have patch PHNE_15835 (it doesn't cause a reboot to
load). To give you an example I ftp'd an excel
spreadsheet to my box called test.xls Then I did the
following:
First create a dummy file with the following line (just as
you see it here)
[include test.xls application/msexcel base64]
Second from the command line:
elm -s "This is a test" user@hp.com
What this did was email to user@hp.com the file test.xls
(and it comes as attached excel file) with a subject line of
This is a test. It works.
You can do it with text files; image.jpg or gif files; and
more. Might want to do some
lookups on IT Resource for more info.
It's a very handy tool that programmers can add right into
the job streams and email reports to users instead of
printing them....makes for paperless environment.
Regards,
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP