Solved

How to send a file attached to a mail using HPUX 11.0

Posted on 2002-05-27
4
495 Views
Last Modified: 2010-04-21
How to send a file attached to a mail using HPUX 11.0
0
Comment
Question by:joelcalzadilla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 50 total points
ID: 7038021
You can use uuencode to do the job:

eg:
   uuencode myprog myprog.uu | mailx -s 'new program' friend@abc.com

   When you friend received, he save this eamil as myprog.email
   and then run the command:

   uudecode myprog.mail

   to retrive the attachment.


Or if you have mutt installed on your system:

  use:
   mutt email@ddress -a filename.to.attache -s "Subject of email" < file.containing.message.body
 
   
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7038863
I don't how often this has been asked and aswered at EE, and the answer is still the same.

short answer: depends on your used mail program
long answer:
  bundled mail command-line programs cannot do it
  yuzh's suggestion does send a plain text (7-bit ASCII) mail, but not an attachement.
  To send it as attachment, your mail program must have a special option for that, somehow. Most GUI mail programs can do it, most command-line programs cannot.
0
 

Expert Comment

by:jvras
ID: 7077396

You can try the command uuencode & mailx
See here a sample

  uuencode <filename> <filename> | mailx -s '<Subject Titel>' email@adress.com

This is not working for all Mail Browsers but the most recieved this as an Attachment. When it's recieving as ASCII tekst in the Mail Browser the user can use the uudecode command.
0
 

Expert Comment

by:pjoliveira
ID: 14827874

I tried the uuencode | mailx and I got an attached file in the outlook mail client. I wonder if there is the need of some tag in the HTML itself in order to make outlook see it as a body instead of an attachement.

I'm still trying to donwload mutt. I'll come back to you.

pjoliveira
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 80
dot directory in FreeBSD??? 4 92
Solaris 10.  Nmap installation fails 2 79
UNIX SCP 5 88
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question