Solved

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

762 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

19 Experts available now in Live!

Get 1:1 Help Now