- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mailx mime types
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
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
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-21-2010 11:30 AM
тАО01-21-2010 11:30 AM
mailx mime types
Sending outbound email using mailx with attachments work on some email clients but not others. It seems like mailx does not set the content-type correctly and thus causing the attachment to appear in the body of the email as garbage. I installed PHNE_34304 that fixed some problems with mailx, however, it doesn't help the outbound mail attachments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 08:19 PM
тАО01-21-2010 08:19 PM
Re: mailx mime types
know exactly what you're doing with mailx, or
exactly what is getting sent out as e-mail
when you do it?
The last time I used "mailx" (long ago), if
it knew what MIME was, I was blissfully
unaware of it. While I don't do this stuff,
so I know nothing, if I were to try, I would
start by using a program like "mpack" to
create a MIME-compliant message file (which
I could examine at my leisure), and then
using a program like "mailx" (in its
stupidest mode -- "-m"?) to send the result.
Knowing nothing, I can't be confident, but
I'd imagine that feeding MIME into a program
which might add its own "Mime Version,
Content Type & Content Encoding to the header
information while sending mails" could cause
it to spew some mess which might confuse the
recipient. ("man mailx".)
A Forum search here for keywords like, say,
e-mail attachment
should find many old threads on this subject.
Many folks seem to recommend using
"uuencode", but, as I said, I'd try "mpack"
(or something similar) to form a
MIME-compliant message file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 09:44 PM
тАО01-21-2010 09:44 PM
Re: mailx mime types
Try adding these two lines into your /usr/share/lib/mailx.rc file.
set charset=us-ascii
set mimeheader=no
and then send the email attachment. I hope you are using "uuencode" or something similar.
Hope this helps.
Regds
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2010 10:59 PM
тАО01-21-2010 10:59 PM
Re: mailx mime types
mailx(1) knows nothing about attachments and basically sets the mime type to something simple like:
Content-Type: text/plain; charset=us-ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2010 05:21 AM
тАО01-22-2010 05:21 AM
Re: mailx mime types
mailx is actually an "interactive message processing system" per the manpages.
As such it doesn't have the power or flexibility to do all the MIME things.
You can use a software utility like mpack or you can use the HPUX MIME tools like sendmail or elm. Personally I use elm all the time and for attaching documents, although there are wonderfully a plethora of different utilities other prefer, my favorite is using a seperate file that uses the [include statements]. I like the include statement because I can send attachments be they plain text or MS Excel docs or images (jpeg,tiffs, etc) and I can also change things from being a base64 to quoted-printable,etc.
There have a number of MIME threads covering various ways to do this, so may I suggest you simply do a Search for MIME mail attachments and enjoy.
Kindest regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2010 06:33 PM
тАО01-24-2010 06:33 PM
Re: mailx mime types
That's a slight overstatement. It forgot to mention that it was from circa 25 years ago. :-)
I'll admit I still use it and use thunderbird if I have to deal with attachments.