Solved

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

Posted on 2002-05-27
4
490 Views
Last Modified: 2010-04-21
How to send a file attached to a mail using HPUX 11.0
0
Comment
Question by:joelcalzadilla
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 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