View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 08:42 PM
Mikko Nahkola
 
Posts: n/a
Default Re: sending email attachment via command line on HPUX11 to an external address

stevan.popovic@orange.net wrote:

> I am having trouble with sending an email attachment from the command
> line to an external email address(one which is not work related). When
> the email is sent the external recipient gets it but the attachment is
> in the main body of the email. Yet when the email is sent to an
> internal company address the attachment is in the correct place.


So is your border mail gateway doing something funny to the mail then?
A virus scanner that disassembles the message, scans the attachments and
then tries to reassemble it, maybe?

Besides ... are you using similar client applications for reading the
mail? They'll often behave very differently ...

> This is what I have used
> ux2dos report.csv | uuencode report_a.csv | mailx -m -s "report info"
> external@company.outthere
> Any ideas?


Some, although that command line does look just fine and it _should_
work.

One, I would say that such an uuencoded attachment _is_ in the main body
of the message, if things are working corretly, but the mail client may
be found to display it otherwise anyway. What are you using there?

Two, I have seen uuencoded attachments treated _really_ oddly in
scanners that expect MIME format. All too many tools only know how to
handle one of the formats. Too bad that there's no MIME-aware
equivalent to mailx in HP-UX by default ...




--
Mikko Nahkola <mnahkola@trein.ntc.nokia.com>
#include <disclaimer.h>
#Not speaking for my employer. No warranty. YMMV.
Reply With Quote