- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Use of sendmail and uuencode
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
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
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-18-2000 11:44 AM
тАО07-18-2000 11:44 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 12:14 PM
тАО07-18-2000 12:14 PM
Re: Use of sendmail and uuencode
Just read it in using the mailx command option of "~r
If sending binary files, there is "mutt" that will allow you to attach files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 12:34 PM
тАО07-18-2000 12:34 PM
Re: Use of sendmail and uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 12:40 PM
тАО07-18-2000 12:40 PM
Re: Use of sendmail and uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:53 PM
тАО07-18-2000 01:53 PM
Re: Use of sendmail and uuencode
Try
"uuencode file file | mailx -m -s subject user@host"
Without -m , mailx produces MIME-Headers.
Greetings,
schneck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 02:09 PM
тАО07-18-2000 02:09 PM
Re: Use of sendmail and uuencode
As you said, the file is an ASCII file. The problem is that the file is too large in some cases, so I can?t include it in the body message, but like an attachment.
I try with the -m option of mailx, but ins no supported by HPUX. It says:
mailx: illegal option -- m
usage: mailx [-FU] [-s subject] [-r address] [-h number] address ...
mailx -e
mailx [-UHiNn] [-u user]
mailx -f [-UHiNn] [filename]
With uuencode, it works with one mail cliente, but it has problems with all others.
Aditionally, I have to send the message with the attachment by the command line, because is a batch process.
Thanks for ypur help.
Bye
Gabriel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 11:41 PM
тАО07-18-2000 11:41 PM
Re: Use of sendmail and uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 11:51 PM
тАО07-18-2000 11:51 PM
Solutiontry do do it with 'mpack'
(ftp.andrew.cmu.edu:pub/mpack/).
In my batch-job it works like this:
mpack -s "$MAIL_SUBJEKT" -d $MAIL_BOTTOM $FILE $ADDRESS
where
MAIL_SUBJEKT is the subject (generated in the Script),
MAIL_BOTTOM is a text-file containing the text of the mail
FILE is the file to attach
ADDRESS is the address (as you would have expected :-))
This works fine.
BUT: Has enyone experience with sending more then one attachment in a batch-job without making things like a ZIP-File???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 11:36 AM
тАО07-19-2000 11:36 AM
Re: Use of sendmail and uuencode
Subject: ADD SUBJECT HERE
MIME-Version: 1.0
Content-type: multipart/mixed;boundary="zzzz"
Content-Transfer-Encoding: 7bit
--zzzz
Content-Type: text/plain; charset=US-ASCII; name="bdy.TXT"
Content-Disposition: inline; filename="bdy.TXT"
Content-Transfer-Encoding: 7bit
ADD BODY TEXT HERE
--zzzz
Content-Type: text/plain; charset=US-ASCII; name="FILENAME1.TXT"
Content-Disposition: inline; filename="FILENAME1.TXT"
Content-Transfer-Encoding: 7bit
ADD ASCII TEXT FOR FIRST ATTACHMENT HERE
--zzzz
Content-Type: text/plain; charset=US-ASCII; name="FILENAME2.TXT"
Content-Disposition: attachment; filename="FILENAME2.TXT"
Content-Transfer-Encoding: 7bit
ADD ASCII TEXT OF SECOND ATTACHMENT HERE
--zzzz--
The zzzz strings are very important. Use the exact text as listed while filling in the filenames. Looks messy but it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2000 01:07 PM
тАО07-19-2000 01:07 PM
Re: Use of sendmail and uuencode
sendmail abc@xyz.com << END
`cat message.file`
`uuencode file1 attachment1`
`uuencode file2 attachment2`
`uuencode file3 attachment3`
END
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2000 12:07 PM
тАО07-24-2000 12:07 PM
Re: Use of sendmail and uuencode
I've been working with mpack and it works fine. The mail messages has been received well by all mail clients I try.
Working with sendmail or mailx, not all clients works well.
Thanks to all for your answers.
Bye.
Gabriel.