- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mailx and sending a PDF 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
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
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
05-02-2018 11:39 AM
05-02-2018 11:39 AM
Mailx and sending a PDF attachment
Hi,
We are using HPUX11.31 and have a script to send PDF attachment via MAILX
Basically the script does the following:
.
echo > $HOME/MY_mail_file
uuencode o40881754.pdf o40881754.pdf >> MY_mail_file
cat MY_mail_file | mailx -m -s "Sending PDF attachment" <email address>
.
This script works fine when sensing the attachment to MS Outlook or Gmail,
but it does not work when using Yahoo mail, we see the PDF attachment but when we try to retrieve it, it fails indicating an invalid format. It appears that Yahoo mail does not know how to decode the attachment done via uuencode.
.
I've been reading different notes regarding this issue, one suggestion was to use "mutt" but I've been told by our Unix admin that it does not seem available for HPUX.
.
I've also tried MIME/base64 code that I found on different forums but it did not work either.
.
Has anyone been able to send PDF attachment to Yahoo mail via a Unix command line (ex: Mailx, Sendmail etc..) ?
If so how was this achieved ?
.
Thanks in advance
- Tags:
- attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 12:31 PM
05-02-2018 12:31 PM
Re: Mailx and sending a PDF attachment
I do this sort of thing about once per decade, at most (and less,
lately), so I know nothing, but...
> [...] I've been reading different notes regarding this issue, [...]
Such as?
> [...] one suggestion was to use "mutt" but I've been told by our Unix
> admin that it does not seem available for HPUX.
And your (or your admin's) quick Web search for keywords like, say:
hp-ux mutt
failed to find, for example:
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.21/
> I've also tried MIME/base64 code that I found on different forums but
> it did not work either.
With my weak psychic powers, I have no idea what you tried, and "did
not work" conveys approximately no useful information.
Another potentially useful program mght be "mpack". A Web or Forum
search for that might find something, too.