Solved

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

Posted on 2002-05-27
4
489 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

937 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now