Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sending the file attachment  via mailx.

Posted on 2001-08-07
5
Medium Priority
?
435 Views
Last Modified: 2010-04-21
I'm Struggling with sending the physical file
with the e-mail, using the mailx.
By default option if you do
mailx -s "Subject" address@abc.com < file_name.txt
it include the file's text into the email body.
How can I avoid that and submit the file
for downloading by recipient?

Thanks
0
Comment
Question by:vitali
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6361383
dou you mean:

  echo "http://host.your.dom/downloads/filename.txt"|mailx -s "Subject" address@abc.com
0
 
LVL 1

Expert Comment

by:stan64
ID: 6363977
you could try

uuencode filename | mailx -s "Subject" address@abc.com

hth
stan
0
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 400 total points
ID: 6364594
Do you want the file as an attachment or a reference to the file where it can be downloaded from?

If the former, then stan64's suggesting _may_ work, but only if the recipient's mailer understands uuencoded attachments (not all do).  Another solution would be to use MIME encoding (universally supported), in which case you'll need a copy of Metamail from ftp://thumper.bellcore.com/pub/nsb/.

If the latter, ahoffman's suggestion is on the right path, though you may need an ftp:// URL instead of http:// depending on circumstances.
0
 
LVL 21

Expert Comment

by:tfewster
ID: 7774694
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by chris_calabrese

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Expert Comment

by:SpideyMod
ID: 7864306
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 …
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…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

972 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