General
cancel
Showing results for 
Search instead for 
Did you mean: 

Mailx and sending a PDF attachment

 
MichelTurser
Occasional Visitor

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

1 REPLY 1
Steven Schweda
Honored Contributor

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.